Closed the-fool closed 7 years ago
This starter includes babel-polyfill by default, but you can remove it and import only those polyfils that you need.
Baseline for babel + angular + uglifyjs is + gzip ~60Kb for vendor.bundle.js
. This is without polyfils and uiRouter.
@the-fool please let me know if you solved problem.
@fesor could you explain how to remove it properly ? I am new with ES6 and Babel.
Yes - very much! Thank you for the kind help.
Search for babel-polyfil
in gulpfile and just remove it. Also check this: https://github.com/zloirock/core-js#commonjs
Yes I saw it yesterday night! Thank you for pointing it out.
Even after uglification, the size of the vendor.bundle.js is 293 kB. Is this right? I know there are polyfills and such added on -- but I feel like something is wrong.
If ~300kB is the baseline for a Babel + Angular app, what can be done to lighten the load?