module-builder icon indicating copy to clipboard operation
module-builder copied to clipboard

`.d.ts` Files not generated for components with script setup

Open ThornWalli opened this issue 1 year ago • 1 comments

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?

image

Thanks!

ThornWalli avatar Sep 05 '24 10:09 ThornWalli

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?

danielroe avatar Sep 10 '24 14:09 danielroe

This is now resolved in unbuild v3 (and will be in the upcoming v1 release of module-builder).

danielroe avatar Dec 13 '24 15:12 danielroe