You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the esbuild docs, it looks like generated CLI argument should be --define:process.env.NODE_ENV=\"production\" instead of --define=process.env.NODE_ENV=\"production\".
🔬 Minimal Reproduction
This occurs with an esbuild rule that looks like this:
🐞 bug report
Affected Rule
The issue is caused by the rule:
esbuild
Is this a regression?
No
Description
When using the
define
option in theesbuild
rule, builds fail with errors similar to:From the esbuild docs, it looks like generated CLI argument should be
--define:process.env.NODE_ENV=\"production\"
instead of--define=process.env.NODE_ENV=\"production\"
.🔬 Minimal Reproduction
This occurs with an
esbuild
rule that looks like this:I tried with esbuild 0.8.34 and 0.8.46.
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
The text was updated successfully, but these errors were encountered: