How to bundle TypeScript declaration files of Vue project? #505
-
我想把使用 tsc 打包出的多个分散的 .d.ts 类型文件, 打包为一个 .d.ts 类型文件 I want to combine multiple scattered .d.ts type files generated by tsc into a single .d.ts type file. |
Beta Was this translation helpful? Give feedback.
Answered by
Timeless0911
Dec 2, 2024
Replies: 2 comments 4 replies
-
https://lib.rsbuild.dev/guide/advanced/dts#how-to-generate-dts-in-rslib |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Timeless0911 似乎并不行, 复现在这里: https://github.com/Zhang-Wei-666/rslib-bug-report/tree/4 以下是截图 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The DTS bundle feature in Rslib is generated by Typescript Compiler API and then bundled by api-extractor.
If you want to bundle Vue DTS files, you can use other tools. see timocov/dts-bundle-generator#68