From 96e113f41c0dae1ccd58c6d1e3b6dd2c54769636 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Sat, 29 Apr 2023 00:08:48 -0400 Subject: bundler tests: rest of default.test.ts and starting jsx tests (#2765) --- src/bun.js/javascript.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bun.js/javascript.zig') diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index a0fd52546..06f833e3b 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -648,7 +648,7 @@ pub const VirtualMachine = struct { this.macro_event_loop.concurrent_tasks = .{}; } - this.bundler.options.platform = .bun_macro; + this.bundler.options.target = .bun_macro; this.bundler.resolver.caches.fs.use_alternate_source_cache = true; this.macro_mode = true; this.event_loop = &this.macro_event_loop; @@ -656,7 +656,7 @@ pub const VirtualMachine = struct { } pub fn disableMacroMode(this: *VirtualMachine) void { - this.bundler.options.platform = .bun; + this.bundler.options.target = .bun; this.bundler.resolver.caches.fs.use_alternate_source_cache = false; this.macro_mode = false; this.event_loop = &this.regular_event_loop; -- cgit v1.2.3