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

Commit6d42091

Browse files
committed
fix: explicitly set the parser to babylon
Avoid the `ImportExpression` error in older versions of ast-types &recast.
1 parentfd4e13b commit6d42091

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

‎generator/codemods/global-api/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ module.exports = function(fileInfo, api) {
2121
returnroot.toSource({lineTerminator:'\n'})
2222
}
2323

24+
module.exports.parser='babylon'

‎generator/codemods/router/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ module.exports = function(fileInfo, api) {
6161

6262
returnroot.toSource({lineTerminator:'\n'})
6363
}
64+
65+
module.exports.parser='babylon'

‎generator/codemods/vuex/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,5 @@ module.exports = function(fileInfo, api) {
6565

6666
returnroot.toSource({lineTerminator:'\n'})
6767
}
68+
69+
module.exports.parser='babylon'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp