huozhi / bunchee

Zero config bundler for ECMAScript and TypeScript packages
https://npmjs.com/bunchee
945 stars 29 forks source link

Add `--dts-resolve` flag like tsup #560

Closed hyoban closed 3 months ago

hyoban commented 5 months ago

When I patch some dependencies locally, I will move them to dev dependencies and bundle them, but the type will not be bundled. It would be great to have a --dts-resolve flag like tsup.

SukkaW commented 3 months ago

We need to pass respectExternal to rollup-plugin-dts for this to work.