Open zhihengGet opened 1 week ago
moving to svelte repo
adding info from @gtm-nayan
cause is in acorn-typescript that just has one scope for both https://github.com/TyrealHu/acorn-typescript/blob/8956dc50370c7ee2ea97a3c903611079192b28d5/src/index.ts#L2720 https://github.com/acornjs/acorn/blob/12ad1164a70dbe804f1ece822f34d100545f1afa/acorn/src/lval.js#L267
In the meantime, either name them differently, or reenable the script preprocessor in your config (it was disabled by default for vite-plugin-svelte 4): preprocess: vitePreprocess({ script: true })
Describe the bug
cant have smae name as variable ...
after using @sveltejs/vite-plugin-svelte@4.0.0-next.6
Reproduction URL
Hello {data.name}!
Reproduction
link
Logs
System Info