Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mdavidn
· 10y ago · 0 comments
I think b) is true only because JavaScript tooling cannot perform dead code elimination. Other languages have big grab-bag utility libraries like lodash that don't hinder performance because a linker or runtime can avoid loading unused portions.
Comments
[–]
doque
10y ago
Webpack 2 will support this:
http://www.2ality.com/2015/12/webpack-tree-shaking.html
[–]
esailija
10y ago
Yes it can
https://github.com/rollup/rollup
. Webpack 2.x can also do this.