Skip to content

Turbopack Nightly Release turbopack-230221.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Feb 18:49
· 5909 commits to main since this release
24801f4
add possible unknown mutation to objects and arrays (#3882)

Before the static evaluation didn't consider the fact that objects and arrays can be mutated. So we can't just assume for sure that they have certain properties/items. Instead we add an unknown mutation alternative to handle that.

This avoids `if(obj.prop)` to be replaced with `if(true)` when prop is initialized with true. It might be modified in future.