File tree 1 file changed +10
-0
lines changed
packages/react-scripts/config
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,11 @@ module.exports = {
370
370
importLoaders : 1 ,
371
371
sourceMap : shouldUseSourceMap ,
372
372
} ) ,
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 ,
373
378
} ,
374
379
// Adds support for CSS Modules (https://github.com/css-modules/css-modules)
375
380
// using the extension .module.css
@@ -397,6 +402,11 @@ module.exports = {
397
402
} ,
398
403
'sass-loader'
399
404
) ,
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 ,
400
410
} ,
401
411
// Adds support for CSS Modules, but using SASS
402
412
// using the extension .module.scss or .module.sass
You can’t perform that action at this time.
0 commit comments