chore: `enableObjectSlots` of `@vue/babel-plugin-jsx` should be false
parent
fb5d2e5054
commit
9c3cf323fe
|
@ -8,7 +8,7 @@ module.exports = function(modules) {
|
||||||
isTSX: true,
|
isTSX: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[resolve('@vue/babel-plugin-jsx'), { mergeProps: false }],
|
[resolve('@vue/babel-plugin-jsx'), { mergeProps: false, enableObjectSlots: false }],
|
||||||
resolve('@babel/plugin-proposal-optional-chaining'),
|
resolve('@babel/plugin-proposal-optional-chaining'),
|
||||||
resolve('@babel/plugin-transform-object-assign'),
|
resolve('@babel/plugin-transform-object-assign'),
|
||||||
resolve('@babel/plugin-proposal-object-rest-spread'),
|
resolve('@babel/plugin-proposal-object-rest-spread'),
|
||||||
|
|
|
@ -97,7 +97,10 @@ function getWebpackConfig(modules) {
|
||||||
options: {
|
options: {
|
||||||
presets: [resolve('@babel/preset-env')],
|
presets: [resolve('@babel/preset-env')],
|
||||||
plugins: [
|
plugins: [
|
||||||
[resolve('@vue/babel-plugin-jsx'), { mergeProps: false }],
|
[
|
||||||
|
resolve('@vue/babel-plugin-jsx'),
|
||||||
|
{ mergeProps: false, enableObjectSlots: false },
|
||||||
|
],
|
||||||
resolve('@babel/plugin-proposal-object-rest-spread'),
|
resolve('@babel/plugin-proposal-object-rest-spread'),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -33,7 +33,7 @@ const babelConfig = {
|
||||||
style: true,
|
style: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
['@vue/babel-plugin-jsx', { mergeProps: false }],
|
['@vue/babel-plugin-jsx', { mergeProps: false, enableObjectSlots: false }],
|
||||||
'@babel/plugin-proposal-optional-chaining',
|
'@babel/plugin-proposal-optional-chaining',
|
||||||
'@babel/plugin-transform-object-assign',
|
'@babel/plugin-transform-object-assign',
|
||||||
'@babel/plugin-proposal-object-rest-spread',
|
'@babel/plugin-proposal-object-rest-spread',
|
||||||
|
|
Loading…
Reference in New Issue