File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,11 @@ module.exports = {
370370 importLoaders : 1 ,
371371 sourceMap : shouldUseSourceMap ,
372372 } ) ,
373+ // Don't consider CSS imports dead code even if the
374+ // containing package claims to have no side effects.
375+ // Remove this when webpack adds a warning or an error for this.
376+ // See https://github.com/webpack/webpack/issues/6571
377+ sideEffects : true ,
373378 } ,
374379 // Adds support for CSS Modules (https://github.com/css-modules/css-modules)
375380 // using the extension .module.css
@@ -397,6 +402,11 @@ module.exports = {
397402 } ,
398403 'sass-loader'
399404 ) ,
405+ // Don't consider CSS imports dead code even if the
406+ // containing package claims to have no side effects.
407+ // Remove this when webpack adds a warning or an error for this.
408+ // See https://github.com/webpack/webpack/issues/6571
409+ sideEffects : true ,
400410 } ,
401411 // Adds support for CSS Modules, but using SASS
402412 // using the extension .module.scss or .module.sass
You can’t perform that action at this time.
0 commit comments