Skip to content
New issue

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

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

Already on GitHub? # to your account

Add babel-only build step #434

Merged
merged 5 commits into from
Mar 26, 2020
Merged

Add babel-only build step #434

merged 5 commits into from
Mar 26, 2020

Conversation

MikeLockz
Copy link
Contributor

Add a babel-only build step that transpiles source files into browser-compatible JS while maintaining ES6 import/exports allowing tree shaking to function properly when rimble-ui is added as a dependency to a repo. Update the watch command to output both UMD and ES6 modules.

Fixes #411

Mike Lock added 2 commits December 23, 2019 14:47
…e.json. Point module property value in package.json to /dist/es directory. Updated demo app to allow for production bundle analysis. Tree shaking works when building es modules manually via babel command line.
@MikeLockz MikeLockz requested a review from gesquinca December 23, 2019 23:03
@MikeLockz MikeLockz self-assigned this Dec 23, 2019
@netlify
Copy link

netlify bot commented Dec 23, 2019

Deploy preview for rimble-ui-storybook ready!

Built with commit 7941f74

https://deploy-preview-434--rimble-ui-storybook.netlify.com

@gesquinca gesquinca changed the base branch from master to development December 26, 2019 18:38
@gesquinca
Copy link
Contributor

doesn't seem right to have both a yarn.lock file and a package-lock file

@gesquinca gesquinca merged commit ae4c958 into development Mar 26, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ES2015 Tree-shaking
2 participants