diff options
author | 2021-09-16 18:46:27 -0700 | |
---|---|---|
committer | 2021-09-16 18:46:27 -0700 | |
commit | 3be2571a312edef78ecb8a064c5212e80718cdf2 (patch) | |
tree | 6d18b93f20195236f7cd2ef9dc4978eb7ffe1ce1 | |
parent | 6352e95d0f9ff168f148dfa100b172f59f1ab6ff (diff) | |
download | bun-3be2571a312edef78ecb8a064c5212e80718cdf2.tar.gz bun-3be2571a312edef78ecb8a064c5212e80718cdf2.tar.zst bun-3be2571a312edef78ecb8a064c5212e80718cdf2.zip |
Fix symbol name for cjs2esm
-rw-r--r-- | src/js_parser/js_parser.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig index 1c70212a0..56402e30f 100644 --- a/src/js_parser/js_parser.zig +++ b/src/js_parser/js_parser.zig @@ -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. |