From 5f679538f6fc7c50dd269bac2972b960998fd5db Mon Sep 17 00:00:00 2001 From: zkwolf Date: Fri, 30 Apr 2021 00:20:59 +0800 Subject: [PATCH] fix: remove enableObjectSlots #3998 --- antd-tools/getBabelCommonConfig.js | 2 +- antd-tools/getWebpackConfig.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/antd-tools/getBabelCommonConfig.js b/antd-tools/getBabelCommonConfig.js index 20f5fa70d1..1f9a97cca7 100644 --- a/antd-tools/getBabelCommonConfig.js +++ b/antd-tools/getBabelCommonConfig.js @@ -8,7 +8,7 @@ module.exports = function(modules) { isTSX: true, }, ], - [resolve('@vue/babel-plugin-jsx'), { mergeProps: false, enableObjectSlots: false }], + [resolve('@vue/babel-plugin-jsx'), { mergeProps: false }], resolve('@babel/plugin-proposal-optional-chaining'), resolve('@babel/plugin-transform-object-assign'), resolve('@babel/plugin-proposal-object-rest-spread'), diff --git a/antd-tools/getWebpackConfig.js b/antd-tools/getWebpackConfig.js index 3ca2b4d8dd..075299fcf2 100644 --- a/antd-tools/getWebpackConfig.js +++ b/antd-tools/getWebpackConfig.js @@ -97,7 +97,7 @@ function getWebpackConfig(modules) { plugins: [ [ resolve('@vue/babel-plugin-jsx'), - { mergeProps: false, enableObjectSlots: false }, + { mergeProps: false }, ], resolve('@babel/plugin-proposal-object-rest-spread'), ],