Skip to content

Commit 83024d4

Browse files
committed
Adding colors to noParse
1 parent 19470ee commit 83024d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ module.exports = function(webpackEnv) {
384384
],
385385
},
386386
module: {
387-
noParse: /iconv-loader\.js$/, // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
387+
noParse: [/iconv-loader\.js$/, /colors\.js$/], // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
388388
strictExportPresence: true,
389389
rules: [
390390
// Disable require.ensure as it's not a standard language feature.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ module.exports = function(webpackEnv) {
363363
],
364364
},
365365
module: {
366-
noParse: /iconv-loader\.js$/, // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
366+
noParse: [/iconv-loader\.js$/, /colors\.js$/], // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
367367
strictExportPresence: true,
368368
rules: [
369369
// Disable require.ensure as it's not a standard language feature.

0 commit comments

Comments
 (0)