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