Skip to content

Commit 9bb966c

Browse files
tharakawjthongdong7
authored andcommitted
Fix error overlay 'Object.assign' issue in IE by including polyfills before webpack client (facebook#3046)
1 parent 5354efc commit 9bb966c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ module.exports = {
4343
// This means they will be the "root" imports that are included in JS bundle.
4444
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
4545
entry: [
46+
// We ship a few polyfills by default:
47+
require.resolve('./polyfills'),
4648
// Include an alternative client for WebpackDevServer. A client's job is to
4749
// connect to WebpackDevServer by a socket and get notified about changes.
4850
// When you save a file, the client will either apply hot updates (in case
@@ -54,8 +56,6 @@ module.exports = {
5456
// require.resolve('webpack-dev-server/client') + '?/',
5557
// require.resolve('webpack/hot/dev-server'),
5658
require.resolve('react-dev-utils/webpackHotDevClient'),
57-
// We ship a few polyfills by default:
58-
require.resolve('./polyfills'),
5959
// Finally, this is your app's code:
6060
paths.appIndexJs,
6161
// We include the app code last so that if there is a runtime error during

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy