tree shake doesn't respect for...of literal of array #4901
Closed
Description
Rollup Version
2.69.0
Operating System (or Browser)
Chrome
Node Version (if applicable)
No response
Link To Reproduction
Expected Behaviour
const foo = [{ value: 1 }];
for (const item of foo) {
item.value = 0;
}
if (foo[0].value === 0) {
console.log('Hello');
}
Actual Behaviour
const foo = [{ value: 1 }];
for (const item of foo) {
item.value = 0;
}