perf: disable enableObjectSlots to reduce bundle size (#8226)

This commit is contained in:
neverland 2021-02-26 11:26:25 +08:00 committed by GitHub
parent 2c2cd104c9
commit 145b1f5968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},
],
],
};