-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Aot Bundle size #1538
Comments
yes, it should work |
waiting for CI to pass... |
tests are passing but, |
released as v1.3.0 |
@olaf89 Btw, what software did you use to produce that pic? |
@ctrl-brk im using webpack-bundle-analyzer |
Woah, nice tool :O |
@olaf89 please try v1.3.2 |
This is awesome! Moment is required only by datepicker |
@valorkin Do you plan to remove momentjs in future? |
More likely to make it optional |
@valorkin I recently had issues with moment in a webpack build for angular2. If it's included in an eager module webpack for some reason will not produce chunks for lazy routes |
Hello, while i was investigating my bundle size using aot build version. I noticed that even when using only one module from ng2-bootstrap the whole library is added as well as moment.js. This makes it quite heavy. Is there any way to improve this? For example changing commonjs modules to ES2015 so it can be tree shaken? Or do you have any other advice which would help with this issue?
This is how adding alert module influenced angular2 webpack starter bundle size (aot prod build) :
The text was updated successfully, but these errors were encountered: