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 @@ -529,6 +529,9 @@ module.exports = function (webpackEnv) {
529
529
sourceMap : isEnvProduction
530
530
? shouldUseSourceMap
531
531
: isEnvDevelopment ,
532
+ modules : {
533
+ compileType : 'icss' ,
534
+ } ,
532
535
} ) ,
533
536
// Don't consider CSS imports dead code even if the
534
537
// containing package claims to have no side effects.
@@ -546,6 +549,7 @@ module.exports = function (webpackEnv) {
546
549
? shouldUseSourceMap
547
550
: isEnvDevelopment ,
548
551
modules : {
552
+ compileType : 'module' ,
549
553
getLocalIdent : getCSSModuleLocalIdent ,
550
554
} ,
551
555
} ) ,
@@ -562,6 +566,9 @@ module.exports = function (webpackEnv) {
562
566
sourceMap : isEnvProduction
563
567
? shouldUseSourceMap
564
568
: isEnvDevelopment ,
569
+ modules : {
570
+ compileType : 'icss' ,
571
+ } ,
565
572
} ,
566
573
'sass-loader'
567
574
) ,
@@ -582,6 +589,7 @@ module.exports = function (webpackEnv) {
582
589
? shouldUseSourceMap
583
590
: isEnvDevelopment ,
584
591
modules : {
592
+ compileType : 'module' ,
585
593
getLocalIdent : getCSSModuleLocalIdent ,
586
594
} ,
587
595
} ,
You can’t perform that action at this time.
0 commit comments