Skip to content

Commit 389ea86

Browse files
committed
fix: temporarily disable babel plugins that are not compatible with babel 7 yet
1 parent bdce865 commit 389ea86

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/@vue/babel-preset-app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ This is the default Babel preset used in all Vue CLI projects.
2020
- Vue JSX support
2121
- [@babel/plugin-syntax-jsx](https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx)
2222
- [babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)
23-
- [babel-plugin-jsx-event-modifiers](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers)
24-
- [babel-plugin-jsx-v-model](https://github.com/nickmessing/babel-plugin-jsx-v-model)
23+
- ~~[babel-plugin-jsx-event-modifiers](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers)~~ (temporarily disabled until fixed for Babel 7)
24+
- ~~[babel-plugin-jsx-v-model](https://github.com/nickmessing/babel-plugin-jsx-v-model)~~ (temporarily disabled until fixed for Babel 7)
2525

2626
## Options
2727

packages/@vue/babel-preset-app/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ module.exports = (context, options = {}) => {
88
if (options.jsx !== false) {
99
plugins.push(
1010
require('@babel/plugin-syntax-jsx'),
11-
require('babel-plugin-transform-vue-jsx'),
12-
require('babel-plugin-jsx-event-modifiers'),
13-
require('babel-plugin-jsx-v-model')
11+
require('babel-plugin-transform-vue-jsx')
12+
// require('babel-plugin-jsx-event-modifiers'),
13+
// require('babel-plugin-jsx-v-model')
1414
)
1515
}
1616

packages/@vue/babel-preset-app/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
"@babel/runtime": "^7.0.0-0",
2929
"babel-helper-vue-jsx-merge-props": "^2.0.3",
3030
"babel-plugin-dynamic-import-node": "^1.2.0",
31-
"babel-plugin-jsx-event-modifiers": "^2.0.5",
32-
"babel-plugin-jsx-v-model": "^2.0.3",
33-
"babel-plugin-transform-vue-jsx": "^3.5.1"
31+
"babel-plugin-transform-vue-jsx": "^4.0.0"
3432
}
3533
}

0 commit comments

Comments
 (0)