[improvement] upgrade babel-preset-jsx (#2452)

This commit is contained in:
neverland
2019-01-07 14:55:55 +08:00
committed by GitHub
parent bf50db9ea0
commit ed7febc131
5 changed files with 90 additions and 20 deletions

View File

@@ -12,6 +12,13 @@ module.exports = function (api) {
loose: true,
modules: useESModules ? false : 'commonjs'
}
],
[
'@vue/babel-preset-jsx',
{
vModel: true,
injectH: true
}
]
],
plugins: [
@@ -24,7 +31,6 @@ module.exports = function (api) {
useESModules
}
],
'transform-vue-jsx',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-object-assign'
]