mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
[improvement] upgrade babel-preset-jsx (#2452)
This commit is contained in:
@@ -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'
|
||||
]
|
||||
|
Reference in New Issue
Block a user