Skip to content

Commit

Permalink
fix(js): set node_env when building with esbuild
Browse files Browse the repository at this point in the history
closes: #16960
  • Loading branch information
ndcunningham committed May 29, 2023
1 parent 0d48d4d commit 297ab7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/esbuild/src/executors/esbuild/esbuild.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 297ab7b

Please sign in to comment.