Skip to content

Commit 912a02e

Browse files
tharakawjJohnNilsson
authored andcommitted
Fix error overlay 'Object.assign' issue in IE by including polyfills before webpack client (#3046)
1 parent ef01aab commit 912a02e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

0 commit comments

Comments
 (0)