diff --git a/packages/esbuild/src/executors/esbuild/esbuild.impl.ts b/packages/esbuild/src/executors/esbuild/esbuild.impl.ts index 6b680dc8e9ea0..872d35b1a771b 100644 --- a/packages/esbuild/src/executors/esbuild/esbuild.impl.ts +++ b/packages/esbuild/src/executors/esbuild/esbuild.impl.ts @@ -41,6 +41,8 @@ export async function* esbuildExecutor( _options: EsBuildExecutorOptions, context: ExecutorContext ) { + process.env.NODE_ENV ??= context.configurationName; + const options = normalizeOptions(_options, context); if (options.deleteOutputPath) removeSync(options.outputPath);