fix assert

This commit is contained in:
Dylan Conway
2025-05-16 09:25:56 -07:00
parent 3983010835
commit b16102c011

View File

@@ -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"});
}