From b395836080a8e4da6a04d6d6f6c3aa68d0f33dd7 Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Thu, 25 May 2023 21:39:01 -0700 Subject: jsx runtime from env (#3076) * use `NODE_ENV` for jsx mode * check env after `configureRouter` * get `NODE_ENV` from `options.production` --- src/cli/build_command.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3