aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/api/transpiler.zig2
1 files changed, 1 insertions, 1 deletions
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));
}
}