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

build: enable preserveModules to main bundle so consumers can use tree shaking #346

Open
WesSouza opened this issue Aug 5, 2022 · 2 comments
Labels

Comments

@WesSouza
Copy link
Member

WesSouza commented Aug 5, 2022

Rollup is not configure to preserveModules for the src/index.ts entry, resulting in one ESM and one JS file for the entire library.

We'd like to allow consumers to import individual components and be able to tree shake the files that are not used.

import { Button } from 'react95';

Should only include files necessary for the Button to render.

@github-actions
Copy link

🎉 This issue has been resolved in version 4.0.0-beta.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

1 participant