mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Fix symbol name for cjs2esm
This commit is contained in:
@@ -1964,6 +1964,7 @@ pub const Parser = struct {
|
||||
if (p.options.transform_require_to_import) {
|
||||
var args = p.allocator.alloc(Expr, 2) catch unreachable;
|
||||
wrapper_expr = p.callRuntime(logger.Loc.Empty, "__cJS2eSM", args);
|
||||
p.resolveGeneratedSymbol(&p.runtime_imports.__cJS2eSM.?);
|
||||
|
||||
// Disable HMR if we're wrapping it in CommonJS
|
||||
// It's technically possible to support this.
|
||||
|
||||
Reference in New Issue
Block a user