fix: temporarily disable babel plugins that are not compatible with babel 7 yet

This commit is contained in:
Evan You
2018-03-05 17:46:40 -05:00
parent bdce865e83
commit 389ea864b0
3 changed files with 6 additions and 8 deletions

View File

@@ -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

View File

@@ -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')
)
}

View File

@@ -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"
}
}