diff --git a/babel.config.js b/babel.config.js index c76ad6dce..30fb8cf78 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,11 @@ module.exports = { presets: [ - ['@vant/cli/preset', { loose: process.env.BUILD_TARGET === 'package' }], + [ + '@vant/cli/preset', + { + loose: process.env.BUILD_TARGET === 'package', + enableObjectSlots: false, + }, + ], ], };