diff options
author | 2021-09-02 11:51:52 -0700 | |
---|---|---|
committer | 2021-09-02 11:51:52 -0700 | |
commit | 2fa09f7c09d48ac74049fd60231cd4a3a2764a31 (patch) | |
tree | 2bf645774a18710b2435e24dea4bde91cb17cbd5 /src/js_parser/js_parser.zig | |
parent | 47c660f2e1438d76682b59ae84592e7e03639878 (diff) | |
download | bun-2fa09f7c09d48ac74049fd60231cd4a3a2764a31.tar.gz bun-2fa09f7c09d48ac74049fd60231cd4a3a2764a31.tar.zst bun-2fa09f7c09d48ac74049fd60231cd4a3a2764a31.zip |
Fix UMD, fix PNPM, importing require'd modules in app code
Former-commit-id: 3d831ad95904d2123964f2ebccff48f1e9f954e9
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. |