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
Expected Behavior
All CJS exports (i.e.
exports.foo = bar
) are removed.Actual Behavior
A 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: