Skip to content

Commit

Permalink
fix(preset-built-in): babel warn from mfsu (#8949)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript authored Aug 11, 2022
1 parent 9cd06d8 commit 2fa6b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/preset-built-in/src/plugins/features/mfsu/mfsu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ export default function (api: IApi) {
opts.presets?.forEach((preset) => {
if (preset instanceof Array && /babel-preset-umi/.test(preset[0])) {
preset[1].env.useBuiltIns = false;
preset[1].env.corejs = false;
}
});
opts.plugins = [
Expand Down

0 comments on commit 2fa6b5d

Please sign in to comment.