@@ -433,11 +433,11 @@ module.exports = function(webpackEnv) {
433433 } ,
434434 } ,
435435 } ,
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 ) ,
441441 // This is a feature of `babel-loader` for webpack (not Babel itself).
442442 // It enables caching results in ./node_modules/.cache/babel-loader/
443443 // directory for faster rebuilds.
@@ -498,7 +498,9 @@ module.exports = function(webpackEnv) {
498498 exclude : cssModuleRegex ,
499499 use : getStyleLoaders ( {
500500 importLoaders : 1 ,
501- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
501+ sourceMap : isEnvProduction
502+ ? shouldUseSourceMap
503+ : isEnvDevelopment ,
502504 } ) ,
503505 // Don't consider CSS imports dead code even if the
504506 // containing package claims to have no side effects.
@@ -512,7 +514,9 @@ module.exports = function(webpackEnv) {
512514 test : cssModuleRegex ,
513515 use : getStyleLoaders ( {
514516 importLoaders : 1 ,
515- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
517+ sourceMap : isEnvProduction
518+ ? shouldUseSourceMap
519+ : isEnvDevelopment ,
516520 modules : {
517521 getLocalIdent : getCSSModuleLocalIdent ,
518522 } ,
@@ -527,7 +531,9 @@ module.exports = function(webpackEnv) {
527531 use : getStyleLoaders (
528532 {
529533 importLoaders : 3 ,
530- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
534+ sourceMap : isEnvProduction
535+ ? shouldUseSourceMap
536+ : isEnvDevelopment ,
531537 } ,
532538 'sass-loader'
533539 ) ,
@@ -544,7 +550,9 @@ module.exports = function(webpackEnv) {
544550 use : getStyleLoaders (
545551 {
546552 importLoaders : 3 ,
547- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
553+ sourceMap : isEnvProduction
554+ ? shouldUseSourceMap
555+ : isEnvDevelopment ,
548556 modules : {
549557 getLocalIdent : getCSSModuleLocalIdent ,
550558 } ,
0 commit comments