Skip to content

Commit

Permalink
Fix polyfills working incorrectly on Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgzf committed Jul 12, 2020
1 parent 312b11a commit 635d6e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/webpack/webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 635d6e9

Please sign in to comment.