@@ -31,11 +31,7 @@ module.exports = (webpackEnv, argv) => {
3131 }
3232
3333 const isDevServerOnly = env . dev_server_only ?. toLowerCase ( ) === 'true' ;
34- const isFastMode = env . fast ?. toLowerCase ( ) !== 'false' && isDevServer && ! isDevServerOnly ;
3534 const isReactRefresh = isDevServer && isEnvDevelopment ;
36- if ( isFastMode ) {
37- console . log ( 'Fast mode enabled: disabled sourcemaps, ...' ) ;
38- }
3935
4036 const now = new Date ( ) ;
4137 const workspacePath = fs . realpathSync ( process . cwd ( ) ) ;
@@ -96,8 +92,7 @@ module.exports = (webpackEnv, argv) => {
9692 mode,
9793 // Logging noise constrained to errors and warnings
9894 stats : 'errors-warnings' , // { logging: 'verbose', timings: true, assets: true },
99- // eslint-disable-next-line no-nested-ternary
100- devtool : isFastMode ? 'eval' : isEnvDevelopment ? 'cheap-module-source-map' : 'source-map' ,
95+ devtool : isEnvDevelopment ? 'cheap-module-source-map' : 'source-map' ,
10196 // These are the "entry points" to our application.
10297 // This means they will be the "root" imports that are included in JS bundle.
10398 entry : Object . fromEntries (
@@ -369,7 +364,6 @@ module.exports = (webpackEnv, argv) => {
369364 plugins : [
370365 process . env . RSDOCTOR && new RsdoctorRspackPlugin ( ) ,
371366 isReactRefresh && new ReactRefreshPlugin ( ) ,
372- // TODO: Enable, but creates a warning right now
373367 new DotenvPlugin ( {
374368 path : path . join ( workspacePath , '.env' ) , // load this now instead of the ones in '.env'
375369 safe : false , // load '.env.example' to verify the '.env' variables are all set. Can also be a string to a different file.
0 commit comments