mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
perf(cli): disable enableObjectSlots by default
This commit is contained in:
@@ -2,6 +2,7 @@ import { ConfigAPI } from '@babel/core';
|
||||
|
||||
type PresetOption = {
|
||||
loose?: boolean;
|
||||
enableObjectSlots?: boolean;
|
||||
};
|
||||
|
||||
module.exports = function (api?: ConfigAPI, options: PresetOption = {}) {
|
||||
@@ -42,7 +43,12 @@ module.exports = function (api?: ConfigAPI, options: PresetOption = {}) {
|
||||
},
|
||||
'vant',
|
||||
],
|
||||
'@vue/babel-plugin-jsx',
|
||||
[
|
||||
'@vue/babel-plugin-jsx',
|
||||
{
|
||||
enableObjectSlots: options.enableObjectSlots,
|
||||
},
|
||||
],
|
||||
'@babel/plugin-transform-object-assign',
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user