Skip to content

Commit 29837c2

Browse files
committed
refactor: replace babel-polyfill with core-js and regenerator-runtime
- Removed babel-polyfill from package.json and webpack.common.js. - Added core-js and regenerator-runtime as dependencies. - Updated babel-loader to version 8.x in devDependencies. - Ensured compatibility with modern JavaScript features by using core-js and regenerator-runtime. Signed-off-by: Yukai Huang <[email protected]>
1 parent e7dc372 commit 29837c2

File tree

5 files changed

+3665
-2039
lines changed

5 files changed

+3665
-2039
lines changed

.babelrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

babel.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', {
4+
targets: {
5+
node: '14'
6+
},
7+
useBuiltIns: 'usage',
8+
corejs: 3
9+
}]
10+
],
11+
plugins: [
12+
['@babel/plugin-transform-runtime', {
13+
corejs: 3
14+
}],
15+
'@babel/plugin-transform-nullish-coalescing-operator'
16+
]
17+
}

0 commit comments

Comments
 (0)