aboutsummaryrefslogtreecommitdiff
path: root/src/cli/build_command.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/build_command.zig')
-rw-r--r--src/cli/build_command.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cli/build_command.zig b/src/cli/build_command.zig
index 52b45c493..14414c7de 100644
--- a/src/cli/build_command.zig
+++ b/src/cli/build_command.zig
@@ -207,8 +207,14 @@ pub const BuildCommand = struct {
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;
+ switch (ctx.debug.macros) {
+ .disable => {
+ this_bundler.options.no_macros = true;
+ },
+ .map => |macros| {
+ this_bundler.options.macro_remap = macros;
+ },
+ .unspecified => {},
}
// var env_loader = this_bundler.env;