diff options
Diffstat (limited to 'src/js_parser/js_parser.zig')
-rw-r--r-- | src/js_parser/js_parser.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig index 590f8b168..92f709557 100644 --- a/src/js_parser/js_parser.zig +++ b/src/js_parser/js_parser.zig @@ -1906,7 +1906,7 @@ pub const Parser = struct { exports_kind = .cjs; if (p.options.transform_require_to_import) { var args = p.allocator.alloc(Expr, 2) catch unreachable; - wrapper_expr = p.callRuntime(logger.Loc.Empty, "__commonJS", args); + wrapper_expr = p.callRuntime(logger.Loc.Empty, "__cJS2eSM", args); // Disable HMR if we're wrapping it in CommonJS // It's technically possible to support this. |