diff options
author | 2023-06-01 13:57:51 -0700 | |
---|---|---|
committer | 2023-06-01 13:57:51 -0700 | |
commit | 473b219a37a6509983657153348b051a1931e44a (patch) | |
tree | cc23f52e99eb1a0c61b8259e77e496acded8fce7 /src/js_parser.zig | |
parent | be1833898eb628544374aaa8ad14a3a22751286d (diff) | |
download | bun-473b219a37a6509983657153348b051a1931e44a.tar.gz bun-473b219a37a6509983657153348b051a1931e44a.tar.zst bun-473b219a37a6509983657153348b051a1931e44a.zip |
only add cjs export name if it is assigned (#3159)
Diffstat (limited to 'src/js_parser.zig')
-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; } |