unplugin-auto-import
unplugin-auto-import copied to clipboard
feat(dts): introduce the `dtsMode` to control the behavior of generating dts file
Description
Introduce the dtsMode to control the behavior of generating dts file.
Default to append
overwrite: overwrite the whole existing .d.ts file with the new type definitions.
append: only append the new type definitions to the existing .d.ts file, means the existing type definitions will be kept.
Linked Issues
resolve #548
Additional context
Run & review this pull request in StackBlitz Codeflow.
@antfu Hey, when will this PR be merged? Thanks.