mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 19:41:57 +08:00
24 lines
513 B
JavaScript
24 lines
513 B
JavaScript
|
|
export default (api) => {
|
|
api.describe({
|
|
key: 'extraBabelPresets',
|
|
config: {
|
|
schema(joi) {
|
|
return joi.array();
|
|
}
|
|
}
|
|
});
|
|
api.modifyBabelPresetOpts(opts => Object.assign({}, opts, {
|
|
typescript: false,
|
|
env: {
|
|
useBuiltIns: 'entry',
|
|
corejs: 3,
|
|
modules: false
|
|
},
|
|
react: false,
|
|
reactRemovePropTypes: false,
|
|
reactRequire: false,
|
|
svgr: false
|
|
}));
|
|
};
|