forked from vuejs/vue-test-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(babel): upgrade from babel 6 to babel 7
Upgrade the babel config from babel 6 to babel 7. This includes a few subset of changes. The vue-flow preset has been removed in favor or direct plugin installation, including 'transform-flow-strip-types', 'syntax-flow', and ' proposal-class-properties'. Use of 'transform-vue-jsx' plugin, using @vue/babel-plugin-transform-vue-jsx and @vue/babel-helper-vue-jsx-merge-props to gain babel 7 support Use proposal decorators with legacy decorators option set to true. This requires options to be set in the babel-eslint to support since legacy behavior is deprecated. Use loose interpretation for proposal class properties to support legacy proposal decorators. Proposal decorators must come before class properties in plugin declaration There were many stage-2 plugins that are not being used and were not installed: 'proposal-export-namespace-from' 'proposal-function-sent' 'proposal-json-strings' 'proposal-numeric-separator' 'proposal-throw-expressions' 'syntax-import-meta' @babel/polyfill now replaces babel-polyfill. @babel/polyfill is currently deprecated, and should be replaced in a future PR. Please see https://babeljs.io/docs/en/babel-polyfill for more details
- Loading branch information
1 parent
ef6f166
commit c6764bf
Showing
7 changed files
with
1,310 additions
and
809 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-env', '@vue/babel-preset-jsx'], | ||
plugins: [ | ||
'@babel/plugin-syntax-jsx', | ||
'@babel/plugin-transform-flow-strip-types', | ||
'@babel/plugin-syntax-flow', | ||
['@babel/plugin-proposal-decorators', { legacy: true }], | ||
['@babel/plugin-proposal-class-properties', { loose: true }] | ||
], | ||
comments: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.