mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-21 23:00:00 -06:00
fix: temporarily disable babel plugins that are not compatible with babel 7 yet
This commit is contained in:
@@ -20,8 +20,8 @@ This is the default Babel preset used in all Vue CLI projects.
|
||||
- Vue JSX support
|
||||
- [@babel/plugin-syntax-jsx](https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx)
|
||||
- [babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)
|
||||
- [babel-plugin-jsx-event-modifiers](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers)
|
||||
- [babel-plugin-jsx-v-model](https://github.com/nickmessing/babel-plugin-jsx-v-model)
|
||||
- ~~[babel-plugin-jsx-event-modifiers](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers)~~ (temporarily disabled until fixed for Babel 7)
|
||||
- ~~[babel-plugin-jsx-v-model](https://github.com/nickmessing/babel-plugin-jsx-v-model)~~ (temporarily disabled until fixed for Babel 7)
|
||||
|
||||
## Options
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ module.exports = (context, options = {}) => {
|
||||
if (options.jsx !== false) {
|
||||
plugins.push(
|
||||
require('@babel/plugin-syntax-jsx'),
|
||||
require('babel-plugin-transform-vue-jsx'),
|
||||
require('babel-plugin-jsx-event-modifiers'),
|
||||
require('babel-plugin-jsx-v-model')
|
||||
require('babel-plugin-transform-vue-jsx')
|
||||
// require('babel-plugin-jsx-event-modifiers'),
|
||||
// require('babel-plugin-jsx-v-model')
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
"@babel/runtime": "^7.0.0-0",
|
||||
"babel-helper-vue-jsx-merge-props": "^2.0.3",
|
||||
"babel-plugin-dynamic-import-node": "^1.2.0",
|
||||
"babel-plugin-jsx-event-modifiers": "^2.0.5",
|
||||
"babel-plugin-jsx-v-model": "^2.0.3",
|
||||
"babel-plugin-transform-vue-jsx": "^3.5.1"
|
||||
"babel-plugin-transform-vue-jsx": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user