Skip to content

Commit bbad49c

Browse files
committed
fix(templates): corejs@3, exports is not defined
重复编译了代码导致这个问题,也可以不使用corejs来解决
1 parent 09c5e57 commit bbad49c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/babel.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = (api) => {
1313
{
1414
useBuiltIns: "usage",
1515
corejs: {
16-
version: 3
16+
version: 3,
17+
proposals: true
1718
}
1819
}
1920
]

templates/config/webpack.config.common.js

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const postcssLoader = {
4343
}
4444
};
4545
const loaderPath = [
46-
path.resolve(APP_ROOT, "node_modules/@wya/vc"),
4746
path.resolve(APP_ROOT, "node_modules/fast-xml-parser"), // 第三方库未编译,导致iOS8不兼容
4847
path.resolve(APP_ROOT, "src")
4948
];

0 commit comments

Comments
 (0)