File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ module.exports = (webpackEnv, argv) => {
2828 throw Error ( `Invalid mode passed: ${ mode } ` ) ;
2929 }
3030
31- const isFastMode = env . fast ?. toLowerCase ( ) !== 'false' && isDevServer ;
3231 const isDevServerOnly = env . dev_server_only ?. toLowerCase ( ) === 'true' ;
32+ const isFastMode = env . fast ?. toLowerCase ( ) !== 'false' && isDevServer && ! isDevServerOnly ;
3333
3434 if ( isFastMode ) {
3535 console . log ( 'Fast mode enabled: disabled sourcemaps, ...' ) ;
@@ -292,7 +292,7 @@ module.exports = (webpackEnv, argv) => {
292292 react : {
293293 runtime : 'automatic' ,
294294 development : isEnvDevelopment ,
295- refresh : isEnvDevelopment && isDevServer && ! isDevServerOnly ,
295+ refresh : isEnvDevelopment ,
296296 } ,
297297 } ,
298298 } ,
@@ -408,7 +408,7 @@ module.exports = (webpackEnv, argv) => {
408408 } ,
409409 plugins : [
410410 process . env . RSDOCTOR && new RsdoctorRspackPlugin ( ) ,
411- isEnvDevelopment && isDevServer && ! isDevServerOnly && new ReactRefreshPlugin ( ) ,
411+ isEnvDevelopment && new ReactRefreshPlugin ( ) ,
412412 // TODO: Enable, but creates a warning right now
413413 new DotenvPlugin ( {
414414 path : path . join ( workspacePath , '.env' ) , // load this now instead of the ones in '.env'
You can’t perform that action at this time.
0 commit comments