-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Question - Bundle size #1400
Comments
It's not quite that simple but you have two options, split or shake. For tree shaking, anything that isn't commonjs will benefit from the tree shaking that's in master currently. I don't use bootstrap, first thing I would check is that what you are trying to shake out is a ES2015 module and not commonjs. If it's commonjs, you would have to take it up with them or use another component framework. If it's ES2015 and not being properly shaken, we will have to look at your setup. |
I used clean clone of latest version of this starter and just added alert module from ng2-bootstrap. |
will it "shake" correctly with the latest changes? |
It does not, |
Hello, im currently investigating my bundle size using aot and prod build version. I noticed that for example using one module from ng2-bootstrap causes all modules from that library to be bundled. I would like to have in my bundle only those modules which im using. Is this expected ? Is that something ng2-bootstrap library should improve on? or should i investigate more advanced tools for tree shaking?
The text was updated successfully, but these errors were encountered: