diff options
author | 2023-07-26 16:54:22 -0700 | |
---|---|---|
committer | 2023-07-26 16:54:36 -0700 | |
commit | 664ccec7d33cc94ba829f35fc7ef8ca7794095cc (patch) | |
tree | 8213b2ee01afa39c9bb1c9d26aa5cae6d13d0cdc /src/bun.js/module_loader.zig | |
parent | 1a558ef7538a19545e5934dfc99edf86ec436892 (diff) | |
download | bun-664ccec7d33cc94ba829f35fc7ef8ca7794095cc.tar.gz bun-664ccec7d33cc94ba829f35fc7ef8ca7794095cc.tar.zst bun-664ccec7d33cc94ba829f35fc7ef8ca7794095cc.zip |
Disable concurrent transpiler in macros
Diffstat (limited to 'src/bun.js/module_loader.zig')
-rw-r--r-- | src/bun.js/module_loader.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig index 245b2ffa1..0e4cb5ba2 100644 --- a/src/bun.js/module_loader.zig +++ b/src/bun.js/module_loader.zig @@ -178,6 +178,7 @@ pub const RuntimeTranspilerStore = struct { generation_number: std.atomic.Atomic(u32) = std.atomic.Atomic(u32).init(0), store: TranspilerJob.Store, + enabled: bool = true, pub fn init(allocator: std.mem.Allocator) RuntimeTranspilerStore { return RuntimeTranspilerStore{ @@ -2035,7 +2036,7 @@ pub const ModuleLoader = struct { if (allow_promise and loader.isJavaScriptLike() and // Plugins make this complicated, // TODO: allow running concurrently when no onLoad handlers match a plugin. - jsc_vm.plugin_runner == null) + jsc_vm.plugin_runner == null and jsc_vm.transpiler_store.enabled) { if (!strings.eqlLong(specifier, jsc_vm.main, true)) { return jsc_vm.transpiler_store.transpile( |