We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've extracted a minimal testcase that reproduces the issue in Rollup 0.34.9:
const items = document.querySelector('.items'); function sayHello() { for (const item of items.children) { item.textContent = 'Hello!'; } } sayHello();
The function remains after tree-shaking if I remove the loop but keep the .textContent-line, or add more code such as a console.log() into it.
The text was updated successfully, but these errors were encountered:
Having looked at issue #786, I believe the cause might be the same. Feel free to close this issue as a dupe if you can verify that this is the case.
Sorry, something went wrong.
preserve effects in for-of loop (#870)
b82375c
preserve effects in for-of and for-in statements. fixes #870
6da374c
Merge pull request #917 from rollup/gh-870
a1bf989
Preserve effects in for-of and for-in statements
Sorry for the delay – fixed in 0.35.4
No branches or pull requests
I've extracted a minimal testcase that reproduces the issue in Rollup 0.34.9:
The function remains after tree-shaking if I remove the loop but keep the .textContent-line, or add more code such as a console.log() into it.
The text was updated successfully, but these errors were encountered: