Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
Adds hack to include Object.entries pollyfill for all builds
Browse files Browse the repository at this point in the history
IE11 was failing in dev mode due to missing Object.entries polyfill in `react-erro-overlay` :(

facebook#8405 (comment)
  • Loading branch information
theinterned committed Feb 7, 2020
1 parent 9ed30b8 commit a25a08e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ module.exports = function(webpackEnv) {
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
entry: [
// START: EVERLONG CHANGES - FRONTEND-99
// this is hopefully a temporary fix for
// https://github.com/facebook/create-react-app/issues/8405
// from this comment:https://github.com/facebook/create-react-app/issues/8405#issuecomment-582388530
'./node_modules/core-js/es/object/entries.js',
// END: EVERLONG CHANGES - FRONTEND-99

// Include an alternative client for WebpackDevServer. A client's job is to
// connect to WebpackDevServer by a socket and get notified about changes.
// When you save a file, the client will either apply hot updates (in case
Expand Down

0 comments on commit a25a08e

Please sign in to comment.