alloc / vite-dts

Blazing fast plugin that generates .d.ts modules for libraries
MIT License
88 stars 15 forks source link

enhancement: allow for dts paths to use exports field. #7

Open drewloomer opened 2 years ago

drewloomer commented 2 years ago

I'm working on a project that bundles multiple libraries from the same package, but dts currently uses main and module exclusively for determining where to output files. This PR adds the ability to parse subpath exports.

drewloomer commented 2 years ago
Screen Shot 2022-03-03 at 8 40 55 PM

@aleclarson this is a better (and actually working!) implementation of the PR I opened and quickly closed earlier. The changes to demo aren't pretty, but I couldn't think of a better way to test that this works.