vite-dts
vite-dts copied to clipboard
enhancement: allow for dts paths to use exports field.
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.
@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.