diff options
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js index 39bb7858087..a545d8e6062 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,5 @@ +const coreJSVersion = require('./node_modules/core-js/package.json').version; + const BABEL_ENV = process.env.BABEL_ENV || process.env.NODE_ENV || null; let presets = [ @@ -5,7 +7,7 @@ let presets = [ '@babel/preset-env', { useBuiltIns: 'usage', - corejs: { version: 3, proposals: true }, + corejs: { version: coreJSVersion, proposals: true }, modules: false, }, ], |