-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue support #247
Comments
Hi @f-lawe, do you have a repo that I can use as a repro? |
I've started a new and very simple one: https://github.com/f-lawe/dts-bundle-generator-vue For some reason, I'm stuck to It's set up with Vite if that can help you. |
Please read this #232, looks like this is exactly what you're experiencing. |
Thanks for replying so fast! I've updated the project using triple-slash directives, but I still face the same issue. Declaration bundle is built, but it's wrong. Regular build is ok, so it's only a Typescript thing. |
I keep looking what's different on my other project. |
It seems that if you do the following it helps a bit:
At least it generates correct file now. But the problem that I see right now is your components would have |
As for this, please add |
Ok, it works with your changes, thanks. And indeed, Vue components are empty. I'm not familiar with Typescript declarations from my side. But I know that vue-tsc is able to generate a valid output. There may be a way to leverage something from it? |
Project updated with a new script: |
@f-lawe it seems |
I gave it a try, but the bundled output is not ok. I'm still investigating a bit and checking first if I'm not the one making a mistake. The regular output works, and this is what I use for the moment. It just would be awesome to have one single package handling both regular JS and Vue. It's not a strong need. |
Can you provide what exactly you'd like to get eventually as an output? I'm not quite understand tbh |
I updated the dts-bundle-generator-vue project so you can have a look.
Ideally, the output should be bundled like your project and populated with the correct Vue declarations like |
@f-lawe is it the only problem with that output from your perspective? It feels like a feature request for |
Hello!
I ran
dts-bundle-generator
against some.vue
files, and it seems to ignore them completely. Is there a known setup to handle this case?Thanks!
The text was updated successfully, but these errors were encountered: