From 9423693a6eb68b744473632845387d306e58f914 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 21 Apr 2023 18:03:07 -0700 Subject: [breaking] In Bun.Transpiler, don't wrap CommonJS modules in `export default` --- src/bun.js/api/JSTranspiler.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bun.js/api') 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; -- cgit v1.2.3