mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
fix assert
This commit is contained in:
@@ -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"});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user