From 1c04073e5ed3f6916f8e9d3d69c2186b89a1a736 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 25 Jun 2022 04:42:11 -0700 Subject: Update transpiler.zig --- src/bun.js/api/transpiler.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bun.js/api/transpiler.zig b/src/bun.js/api/transpiler.zig index 6d3f3f6fd..9c7a1b879 100644 --- a/src/bun.js/api/transpiler.zig +++ b/src/bun.js/api/transpiler.zig @@ -870,7 +870,7 @@ fn getParseResult(this: *Transpiler, allocator: std.mem.Allocator, code: []const if (parse_result) |*res| { for (res.ast.import_records) |*import| { if (import.kind.isCommonJS()) { - import.wrap_with_to_module = true; + import.do_commonjs_transform_in_printer = true; import.module_id = @truncate(u32, std.hash.Wyhash.hash(0, import.path.pretty)); } } -- cgit v1.2.3