@@ -433,11 +433,11 @@ module.exports = function(webpackEnv) {
433
433
} ,
434
434
} ,
435
435
} ,
436
- isEnvDevelopment &&
437
- shouldUseReactRefresh &&
438
- require . resolve ( 'react-refresh/babel' ) ,
439
- ] . filter ( Boolean ) ,
440
- ] ,
436
+ ] ,
437
+ isEnvDevelopment &&
438
+ shouldUseReactRefresh &&
439
+ require . resolve ( 'react-refresh/babel' ) ,
440
+ ] . filter ( Boolean ) ,
441
441
// This is a feature of `babel-loader` for webpack (not Babel itself).
442
442
// It enables caching results in ./node_modules/.cache/babel-loader/
443
443
// directory for faster rebuilds.
@@ -498,7 +498,9 @@ module.exports = function(webpackEnv) {
498
498
exclude : cssModuleRegex ,
499
499
use : getStyleLoaders ( {
500
500
importLoaders : 1 ,
501
- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
501
+ sourceMap : isEnvProduction
502
+ ? shouldUseSourceMap
503
+ : isEnvDevelopment ,
502
504
} ) ,
503
505
// Don't consider CSS imports dead code even if the
504
506
// containing package claims to have no side effects.
@@ -512,7 +514,9 @@ module.exports = function(webpackEnv) {
512
514
test : cssModuleRegex ,
513
515
use : getStyleLoaders ( {
514
516
importLoaders : 1 ,
515
- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
517
+ sourceMap : isEnvProduction
518
+ ? shouldUseSourceMap
519
+ : isEnvDevelopment ,
516
520
modules : {
517
521
getLocalIdent : getCSSModuleLocalIdent ,
518
522
} ,
@@ -527,7 +531,9 @@ module.exports = function(webpackEnv) {
527
531
use : getStyleLoaders (
528
532
{
529
533
importLoaders : 3 ,
530
- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
534
+ sourceMap : isEnvProduction
535
+ ? shouldUseSourceMap
536
+ : isEnvDevelopment ,
531
537
} ,
532
538
'sass-loader'
533
539
) ,
@@ -544,7 +550,9 @@ module.exports = function(webpackEnv) {
544
550
use : getStyleLoaders (
545
551
{
546
552
importLoaders : 3 ,
547
- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
553
+ sourceMap : isEnvProduction
554
+ ? shouldUseSourceMap
555
+ : isEnvDevelopment ,
548
556
modules : {
549
557
getLocalIdent : getCSSModuleLocalIdent ,
550
558
} ,
0 commit comments