diff --git a/website/babel.config.js b/website/babel.config.js index 8ac8929a75..fecc28fb4a 100644 --- a/website/babel.config.js +++ b/website/babel.config.js @@ -14,7 +14,7 @@ module.exports = (api) => { { targets: IS_TEST ? { node: true } : { browsers: pkgJson.browserslist }, modules: IS_TEST ? 'commonjs' : false, - useBuiltIns: 'usage', + useBuiltIns: 'entry', corejs: pkgJson.dependencies['core-js'], // Exclude transforms that make all code slower // See https://github.com/facebook/create-react-app/pull/5278 diff --git a/website/webpack/webpack.config.common.js b/website/webpack/webpack.config.common.js index 07b6ec555a..38358a5323 100644 --- a/website/webpack/webpack.config.common.js +++ b/website/webpack/webpack.config.common.js @@ -33,7 +33,7 @@ const commonConfig = merge([ // convenient with more complex configurations. entry: { // This will build an app.js file from the `main` module. - app: ['entry/main'], + app: ['core-js/stable', 'regenerator-runtime/runtime', 'entry/main'], }, context: parts.PATHS.src, output: {