diff options
Diffstat (limited to 'src/bunfig.zig')
-rw-r--r-- | src/bunfig.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bunfig.zig b/src/bunfig.zig index af3842451..9df2978b0 100644 --- a/src/bunfig.zig +++ b/src/bunfig.zig @@ -579,8 +579,13 @@ pub const Bunfig = struct { } if (json.get("macros")) |expr| { - // technical debt - this.ctx.debug.macros = PackageJSON.parseMacrosJSON(allocator, expr, this.log, this.source); + if (expr.data == .e_boolean) { + if (expr.data.e_boolean.value == false) { + this.ctx.debug.macros = .{ .disable = {} }; + } + } else { + this.ctx.debug.macros = .{ .map = PackageJSON.parseMacrosJSON(allocator, expr, this.log, this.source) }; + } Analytics.Features.macros = true; } |