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 4cf4b1aec..1f61dacfe 100644 --- a/src/js_parser.zig +++ b/src/js_parser.zig @@ -3338,7 +3338,7 @@ pub const Parser = struct { } } - if (exports_kind == .esm and p.commonjs_named_exports.count() > 0 and !p.unwrap_all_requires) { + if ((exports_kind == .esm and p.commonjs_named_exports.count() > 0) or p.unwrap_all_requires) { exports_kind = .esm_with_dynamic_fallback_from_cjs; } |