Teages

Results 47 comments of Teages

I think it is is not avaliable in nitro, because it is designed for nuxt module and it visit runtime config by the nuxt runtime context. for your use case,...

I think we need to generate both because https://github.com/vuejs/core/pull/13301 is merged but volar.js need a lot of work to support `.d.vue.ts`. Currently vue runtime only support infer types from `.d.vue.ts`...

update: now we only need `.d.vue.ts` for `.vue` files https://github.com/volarjs/volar.js/pull/277

I think it is now fixed

make a pr to dev brunch if you think it is really import

I have some idea and I made the another vue mkdist loader around it. Take a look: https://github.com/Teages/mkdist-vue-loader It looks great but I don't know should I merge it back...

~~seems #251 wouln't fix this issues well because I skip dts generate for js-only `` / `` blocks. should I always generate dts for vue files?~~ now the pr will...

`` are closed, it means your type export would not work as you want. move them to a non-setup script could fix it. ```vue export interface xxx {} ```

~~according to tests in https://github.com/unjs/mkdist/pull/251/commits/2452db9dda81d00dd61214f1ad8592959b6c4f6d I think global declare pollution may be a configuration issue (and should not be handled in this pr), so I think this PR is ready...