aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/api/JSTranspiler.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bun.js/api/JSTranspiler.zig b/src/bun.js/api/JSTranspiler.zig
index c68fc75a0..c4968a6ee 100644
--- a/src/bun.js/api/JSTranspiler.zig
+++ b/src/bun.js/api/JSTranspiler.zig
@@ -804,6 +804,8 @@ pub fn constructor(
if (transpiler_options.minify_identifiers)
bundler.options.minify_identifiers = true;
+ bundler.options.transform_only = !bundler.options.allow_runtime;
+
bundler.options.tree_shaking = transpiler_options.tree_shaking;
bundler.options.trim_unused_imports = transpiler_options.trim_unused_imports;
bundler.options.allow_runtime = transpiler_options.runtime.allow_runtime;