ssrTransform
incorrectly transforms references in "for" block
#13012
Labels
ssrTransform
incorrectly transforms references in "for" block
#13012
Describe the bug
Variable
test
is replaced with__vite_ssr_import_0__.test
, even though the user referenced the local variable and not the named import.Original code:
Processed result:
Reproduction
https://stackblitz.com/edit/node-isfe8x?file=index.mjs
Steps to reproduce
Run
node index.js
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: