Exported variables not exposed to template with script setup
Version
3.2.11
Reproduction link
Steps to reproduce
Open the reproduction, the error pops up immediately
What is expected?
Exported variables should be exposed to the template, as unexported ones are (compare with https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdD5cbmNvbnN0IGJhciA9IDU7XG48L3NjcmlwdD5cblxuPHNjcmlwdCBzZXR1cD5cbmNvbnNvbGUubG9nKFwiSGVsbG8gd29ybGRcIilcbjwvc2NyaXB0PlxuXG48dGVtcGxhdGU+XG4gIHt7IGJhciB9fVxuPC90ZW1wbGF0ZT5cbiIsImltcG9ydC1tYXAuanNvbiI6IntcbiAgXCJpbXBvcnRzXCI6IHt9XG59In0=)
What is actually happening?
"Property "bar" was accessed during render but is not defined on instance." error