Skip to content

Commit

Permalink
Fix babel issue
Browse files Browse the repository at this point in the history
  • Loading branch information
legendword committed Sep 24, 2024
1 parent ae40d2d commit fff07f5
Show file tree
Hide file tree
Showing 5 changed files with 465 additions and 406 deletions.
5 changes: 4 additions & 1 deletion templates/vue/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings"
"@babel/plugin-proposal-json-strings",
["@babel/plugin-transform-runtime", {
"regenerator": true
}]
],
"env": {
"development": {
Expand Down
2 changes: 1 addition & 1 deletion templates/vue/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"editor.formatOnSave": false,
"vetur.validation.template": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"[php]": {
"editor.formatOnSave": true
Expand Down
5 changes: 4 additions & 1 deletion templates/vue/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings"
"@babel/plugin-proposal-json-strings",
["@babel/plugin-transform-runtime", {
"regenerator": true
}]
],
"env": {
"development": {
Expand Down
Loading

0 comments on commit fff07f5

Please sign in to comment.