aboutsummaryrefslogtreecommitdiff
path: root/src/bun_js.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun_js.zig')
-rw-r--r--src/bun_js.zig20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig
index 12876cae8..fd124a8ac 100644
--- a/src/bun_js.zig
+++ b/src/bun_js.zig
@@ -90,8 +90,14 @@ pub const Run = struct {
// b.options.minify_syntax = ctx.bundler_options.minify_syntax;
- if (ctx.debug.macros) |macros| {
- b.options.macro_remap = macros;
+ switch (ctx.debug.macros) {
+ .disable => {
+ b.options.no_macros = true;
+ },
+ .map => |macros| {
+ b.options.macro_remap = macros;
+ },
+ .unspecified => {},
}
b.configureRouter(false) catch {
@@ -175,8 +181,14 @@ pub const Run = struct {
// b.options.minify_syntax = ctx.bundler_options.minify_syntax;
- if (ctx.debug.macros) |macros| {
- b.options.macro_remap = macros;
+ switch (ctx.debug.macros) {
+ .disable => {
+ b.options.no_macros = true;
+ },
+ .map => |macros| {
+ b.options.macro_remap = macros;
+ },
+ .unspecified => {},
}
b.configureRouter(false) catch {