Skip to content

Commit ba98491

Browse files
committed
feat: proposal supported
1 parent 08be1b9 commit ba98491

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

babel.config.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ module.exports = {
33
[
44
'@babel/preset-env',
55
{
6-
useBuiltIns: 'usage',
7-
modules: false,
8-
corejs: 3,
6+
useBuiltIns: 'usage', // adds specific imports for polyfills when they are used in each file.
7+
modules: false, // preserve ES modules.
8+
corejs: { version: 3, proposals: true }, // enable polyfilling of every proposal supported by core-js.
99
},
1010
],
1111
],
12-
plugins: ['@babel/plugin-transform-runtime'],
12+
plugins: [
13+
'@babel/plugin-transform-runtime', // enables the re-use of Babel's injected helper code to save on codesize.
14+
],
1315
exclude: [/core-js/],
1416
}

0 commit comments

Comments
 (0)