Investigating the overhead cost of compiled ES2015
github.com
github.com
I guess it wouldn't be JavaScript without at least three choices, one of them still in its infancy but with features the others don't have, just to make those crucial decisions that little bit juicier.
Due to the ES6 drama, I have to live with Babel for now which I really don't like, now I will have to reconsider this whole stack, shame on me that I missed it last May.
https://github.com/samccone/The-cost-of-transpiling-es2015-i...
-----------------------------------------
stat -f%z src/dist/bundle.js
15757
gzip -c src/dist/bundle.js | wc -c
4270
-----------------------------------------
So still not quite as small as the rollup, closure, or webpack
> When using uglifyify you should generally also use Uglify, to achieve the smallest output. Uglifyify provides an additional optimization when used with Uglify, but does not provide all of the optimization that using Uglify on its own does, so it's not a replacement.
Why doesn't Uglify just do all the work and not require a separate component to do extra optimisation? Or is the extra optimisation specifically tailored to browserify?
By targeting CommonJS and using Browserify, you see a nice decrease. I've sent out a pull request since finding this.
https://github.com/samccone/The-cost-of-transpiling-es2015-i...
Knowing barely anything about Typescript, does this include TS's ES6 features in the same way as the Babel build?
https://github.com/samccone/The-cost-of-transpiling-es2015-i...