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-replace] @rollup/[email protected] doesn't work when ternary operator is used and preventAssigment is true #1619
Comments
@hhgnsc this is a regression from the last PR. (we didn't have a test for this, so it's not your fault no worries) |
yyx990803
added a commit
to vuejs/core
that referenced
this issue
Feb 5, 2024
5.0.5 introduced a regression that causes replacements in the truthy branch of ternaries to be skipped: rollup/plugins#1619 This causes the enum replacements to fail and leads to bundle size regressions.
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
dist/main.js
will beActual Behavior
dist/main.js
isAdditional Information
@rollup/[email protected]
workspreventAssigment
of@rollup/[email protected]
should be settrue
for reproductionThe text was updated successfully, but these errors were encountered: