aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cli/build_command.zig3
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;
}