Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add subpath exports #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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