You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens when appending || false to the condition in the if statement.
The text was updated successfully, but these errors were encountered:
jaskp
changed the title
plugin-commonjs misses export in conditional statement affected by plugin-replace
plugin-commonjs broken by || falseSep 23, 2024
jaskp
changed the title
plugin-commonjs broken by || false
[plugin-commonjs] Untransformed exports in conditional branch
Oct 23, 2024
Expected Behavior
All reachable CJS exports (i.e.
exports.foo = bar
) are transformed.Actual Behavior
A reachable CJS export remains in the true branch:
Additional Information
This happens when appending
|| false
to the condition in the if statement.The text was updated successfully, but these errors were encountered: