unplugin-dts icon indicating copy to clipboard operation
unplugin-dts copied to clipboard

Use rollup-plugin-dts for bundling

Open sgarfinkel opened this issue 4 months ago • 2 comments

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.

sgarfinkel avatar Aug 07 '25 14:08 sgarfinkel

Could you provide some cases about api-extractor works with errors?

qmhc avatar Aug 07 '25 15:08 qmhc

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.

aprosail avatar Aug 09 '25 08:08 aprosail