Closed Rich-Harris closed 8 years ago
This is real nice :sunglasses: :+1:
I will land this commit with the other outstanding PRs tonight and update all of the graphs
so @Rich-Harris I was slightly suspicious of this fix.. given what happened in closure compiler when I tried a similar optimization
The mangled names cause the code to no longer function for all of the examples.
(going to investigate the src code changes needed to enable this kind of mangling so no action needed just yet)
Noticed in the various package.json files that you're using an old version of uglifyjs:
"uglifyjs": "^2.4.10"
The latest version is:
"uglifyjs": "^2.6.1"
That may resolve your mangle issue.
I am unable to reproduce the error reported in https://github.com/samccone/The-cost-of-transpiling-es2015-in-2016/pull/17#issuecomment-178955003 with mangle enabled on rollup, webkit and babel. Tested on Chrome and Safari. The Todo app works fine and no errors in javascript console other than Chrome can't find favicon.ico.
manually landed woohoo!
:+1:
@Rich-Harris you can track the progress as I land everything here https://github.com/samccone/The-cost-of-transpiling-es2015-in-2016/tree/mangle#raw-data
Thanks for doing this awesome research!
I was surprised to see Webpack beating Rollup, so I poked around a bit – it seems that while the Webpack example is using
UglifyJsPlugin
, which mangles variable names, thenpm run compile
scripts don't use the--mangle
option.With
--mangle
, I get different results formake size
:So Rollup now beats Webpack (3737).
Obviously this is just sour grapes on my part (I created Rollup) but I do think it's a fairer comparison :grinning: