File tree 1 file changed +8
-0
lines changed
packages/react-scripts/config
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -518,6 +518,9 @@ module.exports = function (webpackEnv) {
518
518
sourceMap : isEnvProduction
519
519
? shouldUseSourceMap
520
520
: isEnvDevelopment ,
521
+ modules : {
522
+ compileType : 'icss' ,
523
+ } ,
521
524
} ) ,
522
525
// Don't consider CSS imports dead code even if the
523
526
// containing package claims to have no side effects.
@@ -535,6 +538,7 @@ module.exports = function (webpackEnv) {
535
538
? shouldUseSourceMap
536
539
: isEnvDevelopment ,
537
540
modules : {
541
+ compileType : 'module' ,
538
542
getLocalIdent : getCSSModuleLocalIdent ,
539
543
} ,
540
544
} ) ,
@@ -551,6 +555,9 @@ module.exports = function (webpackEnv) {
551
555
sourceMap : isEnvProduction
552
556
? shouldUseSourceMap
553
557
: isEnvDevelopment ,
558
+ modules : {
559
+ compileType : 'icss' ,
560
+ } ,
554
561
} ,
555
562
'sass-loader'
556
563
) ,
@@ -571,6 +578,7 @@ module.exports = function (webpackEnv) {
571
578
? shouldUseSourceMap
572
579
: isEnvDevelopment ,
573
580
modules : {
581
+ compileType : 'module' ,
574
582
getLocalIdent : getCSSModuleLocalIdent ,
575
583
} ,
576
584
} ,
You can’t perform that action at this time.
0 commit comments