We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08be1b9 commit ba98491Copy full SHA for ba98491
babel.config.js
@@ -3,12 +3,14 @@ module.exports = {
3
[
4
'@babel/preset-env',
5
{
6
- useBuiltIns: 'usage',
7
- modules: false,
8
- corejs: 3,
+ useBuiltIns: 'usage', // adds specific imports for polyfills when they are used in each file.
+ modules: false, // preserve ES modules.
+ corejs: { version: 3, proposals: true }, // enable polyfilling of every proposal supported by core-js.
9
},
10
],
11
12
- plugins: ['@babel/plugin-transform-runtime'],
+ plugins: [
13
+ '@babel/plugin-transform-runtime', // enables the re-use of Babel's injected helper code to save on codesize.
14
+ ],
15
exclude: [/core-js/],
16
}
0 commit comments