diff options
-rw-r--r-- | src/js_parser.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig index afec299d9..0d15ffd9e 100644 --- a/src/js_parser.zig +++ b/src/js_parser.zig @@ -17656,7 +17656,7 @@ fn NewParser_( }, name_loc, ); - } else if (p.options.features.commonjs_at_runtime) { + } else if (p.options.features.commonjs_at_runtime and identifier_opts.assign_target != .none) { // Record this CommonJS export name for use later. _ = p.commonjs_export_names.getOrPut(p.allocator, name) catch unreachable; } |