Skip to content

Commit

Permalink
fix(legacy): 修复开启 legacy 配置时,用户 targets 被覆盖的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzebang.hzb committed Nov 14, 2023
1 parent a298dcc commit 3668574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-umi/src/features/legacy/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ export default (api: IApi) => {

// specify a low-compatibility target for babel transform
memo.targets = {
...userConfig.targets,
ie: 11,
...userConfig.targets,
};

logger.info(
Expand Down

0 comments on commit 3668574

Please sign in to comment.