Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
1df16109
Commit
1df16109
authored
7 years ago
by
Tharaka Wijebandara
Committed by
Dan Abramov
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix error overlay 'Object.assign' issue in IE by including polyfills before webpack client (#3046)
parent
a51be958
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/config/webpack.config.dev.js
+2
-2
packages/react-scripts/config/webpack.config.dev.js
with
2 additions
and
2 deletions
+2
-2
packages/react-scripts/config/webpack.config.dev.js
+
2
-
2
View file @
1df16109
...
@@ -43,6 +43,8 @@ module.exports = {
...
@@ -43,6 +43,8 @@ module.exports = {
// This means they will be the "root" imports that are included in JS bundle.
// This means they will be the "root" imports that are included in JS bundle.
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
entry
:
[
entry
:
[
// We ship a few polyfills by default:
require
.
resolve
(
'
./polyfills
'
),
// Include an alternative client for WebpackDevServer. A client's job is to
// Include an alternative client for WebpackDevServer. A client's job is to
// connect to WebpackDevServer by a socket and get notified about changes.
// 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
// When you save a file, the client will either apply hot updates (in case
...
@@ -54,8 +56,6 @@ module.exports = {
...
@@ -54,8 +56,6 @@ module.exports = {
// require.resolve('webpack-dev-server/client') + '?/',
// require.resolve('webpack-dev-server/client') + '?/',
// require.resolve('webpack/hot/dev-server'),
// require.resolve('webpack/hot/dev-server'),
require
.
resolve
(
'
react-dev-utils/webpackHotDevClient
'
),
require
.
resolve
(
'
react-dev-utils/webpackHotDevClient
'
),
// We ship a few polyfills by default:
require
.
resolve
(
'
./polyfills
'
),
// Finally, this is your app's code:
// Finally, this is your app's code:
paths
.
appIndexJs
,
paths
.
appIndexJs
,
// We include the app code last so that if there is a runtime error during
// We include the app code last so that if there is a runtime error during
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment