-
-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin-commonjs broken by || false
#1771
Comments
jaskp
changed the title
plugin-commonjs misses export in conditional statement affected by plugin-replace
plugin-commonjs broken by Sep 23, 2024
|| false
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: