aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js_parser.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig
index 5f46507d7..dfcf6ad0a 100644
--- a/src/js_parser.zig
+++ b/src/js_parser.zig
@@ -17620,7 +17620,7 @@ fn NewParser_(
if (comptime FeatureFlags.unwrap_commonjs_to_esm) {
if (!p.is_control_flow_dead and id.ref.eql(p.exports_ref)) {
- if (!p.commonjs_named_exports_deoptimized) {
+ if (!p.commonjs_named_exports_deoptimized and identifier_opts.assign_target != .none) {
if (identifier_opts.is_delete_target) {
p.deoptimizeCommonJSNamedExports();
return null;