Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce1378e

Browse files
committed
fix: j.Property -> j.ObjectProperty, as we now use babylon
1 parent7937c75 commitce1378e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎generator/codemods/global-api/remove-contextual-h.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const addImport = require('../utils/add-import')
99
module.exports=functionremoveContextualH(context){
1010
const{ j, root}=context
1111

12-
constrenderFns=root.find(j.Property,{
12+
constrenderFns=root.find(j.ObjectProperty,{
1313
key:{
1414
name:'render'
1515
},

‎generator/codemods/router/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ module.exports = function(fileInfo, api) {
4444
}
4545

4646
addImport(context,{imported:initializer},'vue-router')
47-
returnj.property(
48-
'init',
47+
returnj.objectProperty(
4948
j.identifier('history'),
5049
j.callExpression(j.identifier(initializer),[])
5150
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp