Skip to content

Conversation

favna
Copy link

@favna favna commented May 16, 2024

This adds subpath exports to the package.json and a script to generate them. This allows people to import only 1 module which is ideal for bundlers like Vite especially when dealing with libraries that have dependencies only for some components but not for others. Using subpath imports users of the library do not need all dependencies but only those that get imported in the files that they import.

(commits gpg unverified because I did this quick and dirty mode from GH codespace)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant