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

Commit a25a08e

Browse files
committed
Adds hack to include Object.entries pollyfill for all builds
IE11 was failing in dev mode due to missing Object.entries polyfill in `react-erro-overlay` :( facebook#8405 (comment)
1 parent 9ed30b8 commit a25a08e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/react-scripts/config/webpack.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ module.exports = function(webpackEnv) {
158158
// These are the "entry points" to our application.
159159
// This means they will be the "root" imports that are included in JS bundle.
160160
entry: [
161+
// START: EVERLONG CHANGES - FRONTEND-99
162+
// this is hopefully a temporary fix for
163+
// https://github.com/facebook/create-react-app/issues/8405
164+
// from this comment:https://github.com/facebook/create-react-app/issues/8405#issuecomment-582388530
165+
'./node_modules/core-js/es/object/entries.js',
166+
// END: EVERLONG CHANGES - FRONTEND-99
167+
161168
// Include an alternative client for WebpackDevServer. A client's job is to
162169
// connect to WebpackDevServer by a socket and get notified about changes.
163170
// When you save a file, the client will either apply hot updates (in case

0 commit comments

Comments
 (0)