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

Enable babel webpack treeshaking interop & update npm scripts #95

Merged
merged 2 commits into from Nov 13, 2018
Merged

Enable babel webpack treeshaking interop & update npm scripts #95

merged 2 commits into from Nov 13, 2018

Conversation

lorecrafting
Copy link

Disabled babel transpiling modules to commonJS in @babel/preset-env so webpack can do the transpiling in order to allow for treeshaking. Per webpack documentation, CommonJS is not treeshakable. https://webpack.js.org/guides/tree-shaking/

Also updating the build and watch npm script to use webpack instead of brunch. These can be referenced to update the release.sh script to create a production build.

@oestrich oestrich merged commit 91072dc into oestrich:master Nov 13, 2018
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.

None yet

2 participants