-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(react): add support for rollup in bundles #5185
feat(react): add support for rollup in bundles #5185
Conversation
FYI @vpicone |
Deploy preview for the-carbon-components ready! Built with commit 7c5c391 https://deploy-preview-5185--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 7c5c391 |
Deploy preview for carbon-components-react failed. Built with commit 7c5c391 https://app.netlify.com/sites/carbon-components-react/deploys/5e3076cf41084a000cf089be |
@joshblack nice! When messing around with typescript this seemed like a pretty necessary move. |
@joshblack Could you go over the rollup config stuff with me? Config files are a complete mystery to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey I noticed that the prop-types are still being included, is that supposed to happen?
…k/carbon into feat/add-rollup-bundle-to-react
@abbeyhrt updated! Thanks for the catch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ✅
Add in support for creating ESM, CommonJS, and UMD bundles through a single rollup config. This change also keeps support for importing files directing to maintain backwards-compatibility. As a result, these changes generate (or maintain) the following bundles with rollup:
es/index.js
lib/index.js
umd/carbon-components-react.js
umd/carbon-components-react.min.js
Changelog
New
Changed
carbon-components-react
to use rollup for bundling ESM, CommonJS, and UMDRemoved