diff options
| author | 2023-05-25 21:39:01 -0700 | |
|---|---|---|
| committer | 2023-05-25 21:39:01 -0700 | |
| commit | b395836080a8e4da6a04d6d6f6c3aa68d0f33dd7 (patch) | |
| tree | 525abb719cb5b36103e7773c3c5dc94528d759c2 | |
| parent | 801881dd7dc4db6bcae1a32574e31e86aa859cde (diff) | |
| download | bun-b395836080a8e4da6a04d6d6f6c3aa68d0f33dd7.tar.gz bun-b395836080a8e4da6a04d6d6f6c3aa68d0f33dd7.tar.zst bun-b395836080a8e4da6a04d6d6f6c3aa68d0f33dd7.zip | |
jsx runtime from env (#3076)
* use `NODE_ENV` for jsx mode
* check env after `configureRouter`
* get `NODE_ENV` from `options.production`
Diffstat (limited to '')
| -rw-r--r-- | src/cli/build_command.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli/build_command.zig b/src/cli/build_command.zig index 957cbc9b7..52b45c493 100644 --- a/src/cli/build_command.zig +++ b/src/cli/build_command.zig @@ -204,6 +204,9 @@ pub const BuildCommand = struct { this_bundler.options.node_modules_bundle_url = ""; }; + this_bundler.options.jsx.development = !this_bundler.options.production; + this_bundler.resolver.opts.jsx.development = this_bundler.options.jsx.development; + if (ctx.debug.macros) |macros| { this_bundler.options.macro_remap = macros; } |
