vueTemplateAddon replace variables in non setup script component
huang-julien opened this issue · 0 comments
huang-julien commented
Environment
node 16
Nuxt 3
Reproduction
stackblitz
sfc playground
Nuxt 3 original issue by @FRSgit
Describe the bug
As you can see in the SFC Playground, vue prepend _ctx
to every variables from the setup. This cause the unimport plugin to replace a variable even if it has been declared it the setup of the component
Additional context
No response
Logs
No response