Skip to content

Commit 6f76253

Browse files
committed
Fix iconv loader
1 parent ad4c053 commit 6f76253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ module.exports = function(webpackEnv) {
350350
],
351351
},
352352
module: {
353+
noParse: /iconv-loader\.js$/, // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
353354
strictExportPresence: true,
354355
rules: [
355356
// Disable require.ensure as it's not a standard language feature.
@@ -616,7 +617,6 @@ module.exports = function(webpackEnv) {
616617
],
617618
},
618619
plugins: [
619-
new webpack.IgnorePlugin(/\/iconv-loader$/), // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
620620
useHardSourceWebpackPlugin &&
621621
new HardSourceWebpackPlugin({ environmentHash }),
622622
useHardSourceWebpackPlugin &&

0 commit comments

Comments
 (0)