[turbopack] Fix a bug where our `global` rewrite could introduce a TDZ issue (#82659)
Change our `global` rewrite to use a non-shadowable property on `__turbopack_context__` The previous rewrite to `globalThis` would break if there was a local declaration of `let globalThis` which could either trigger a TDZ error or simply evaluate to the wrong value. Closes PACK-5256 Fixes #82632
Showing
This diff is collapsed.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
Please
register
or
sign in
to comment