Use rollup-plugin-dts for bundling
Description
I’ve never had api-extractor work properly without an error, while https://www.npmjs.com/package/rollup-plugin-dts has always worked perfectly or it at least emits an actionable error. Is it possible to either replace api-extractor with instead running rollup, or at least make it an option?
Suggested solution
Add support for rollup-plugin-dts as an alternative to api-extractor
Alternative
You can do this indirectly via the afterBuild callback, but a first class option would be preferred to also handle cleanup.
Additional context
No response
Validations
- [x] Read the FAQ.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Could you provide some cases about api-extractor works with errors?
rollup-plugin-dts is released under copyleft LGPL-3.0, while this plugin (unplugin-dts) is released under the MIT License. A MIT-licensed project cannot use a GPL-licensed project as dependency.