Skip to content

Commit 84adac3

Browse files
committed
Adding colors to noParse
1 parent 9f75d1e commit 84adac3

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
@@ -383,7 +383,7 @@ module.exports = function(webpackEnv) {
383383
],
384384
},
385385
module: {
386-
noParse: /iconv-loader\.js$/, // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
386+
noParse: [/iconv-loader\.js$/, /colors\.js$/], // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
387387
strictExportPresence: true,
388388
rules: [
389389
// 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
@@ -362,7 +362,7 @@ module.exports = function(webpackEnv) {
362362
],
363363
},
364364
module: {
365-
noParse: /iconv-loader\.js$/, // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
365+
noParse: [/iconv-loader\.js$/, /colors\.js$/], // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
366366
strictExportPresence: true,
367367
rules: [
368368
// Disable require.ensure as it's not a standard language feature.

0 commit comments

Comments
 (0)