diff --git a/src/cli/build_command.zig b/src/cli/build_command.zig index fc7fb2de60..bccaefe435 100644 --- a/src/cli/build_command.zig +++ b/src/cli/build_command.zig @@ -227,13 +227,13 @@ pub const BuildCommand = struct { try this_transpiler.env.map.put("NODE_ENV", "production"); } - try this_transpiler.configureDefines(); - this_transpiler.configureLinker(); - if (ctx.bundler_options.production) { bun.assert(!this_transpiler.options.jsx.development); } + try this_transpiler.configureDefines(); + this_transpiler.configureLinker(); + if (!this_transpiler.options.production) { try this_transpiler.options.conditions.appendSlice(&.{"development"}); }