module-builder
module-builder copied to clipboard
`.d.ts` Files not generated for components with script setup
Hello,
I have noticed that when a component with <script setup> is created, no .d.ts file is created for it.
Is there a reason for this and is it correct?
Thanks!
The reason is that defineProps and other macros in <script setup> need special handling and volar can do that at runtime.
Is it causing any issues for you?
This is now resolved in unbuild v3 (and will be in the upcoming v1 release of module-builder).