Skip to content

Commit

Permalink
fix: temporarily disable babel plugins that are not compatible with b…
Browse files Browse the repository at this point in the history
…abel 7 yet
  • Loading branch information
yyx990803 committed Mar 5, 2018
1 parent bdce865 commit 389ea86
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/babel-preset-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions packages/@vue/babel-preset-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
)
}

Expand Down
4 changes: 1 addition & 3 deletions packages/@vue/babel-preset-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 389ea86

Please sign in to comment.