Skip to content

Commit 9e4fa1f

Browse files
tharakawjmorgs32
authored andcommitted
Fix error overlay 'Object.assign' issue in IE by including polyfills before webpack client (facebook#3046)
1 parent 2ad6e00 commit 9e4fa1f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ module.exports = {
6767
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
6868
entry: {
6969
[mainEntry]: [
70-
// Include an alternative client for WebpackDevServer. A client's job is to
70+
// We ship a few polyfills by default:
71+
require.resolve('./polyfills'),// Include an alternative client for WebpackDevServer. A client's job is to
7172
// connect to WebpackDevServer by a socket and get notified about changes.
7273
// When you save a file, the client will either apply hot updates (in case
7374
// of CSS changes), or refresh the page (in case of JS changes). When you
@@ -78,10 +79,6 @@ module.exports = {
7879
// require.resolve('webpack-dev-server/client') + '?/',
7980
// require.resolve('webpack/hot/dev-server'),
8081
require.resolve('react-dev-utils/webpackHotDevClient'),
81-
// We ship a few polyfills by default:
82-
require.resolve('./polyfills'),
83-
// Errors should be considered fatal in development
84-
require.resolve('react-error-overlay'),
8582
// Finally, this is your app's code:
8683
paths.appIndexJs,
8784
// We include the app code last so that if there is a runtime error during

0 commit comments

Comments
 (0)