samccone / The-cost-of-transpiling-es2015-in-2016

Investigating the overhead cost of compiled es2015
1.34k stars 37 forks source link

Update jspm case #28

Closed guybedford closed 8 years ago

guybedford commented 8 years ago

Rollup requires the global name to be set in order to work, the latest beta at least throws a proper error message here isn't of just silently letting the rollup optimization fail.

Should get a much better score now, although it is somewhat cheating as it is all thanks to Rollup anyway :)

guybedford commented 8 years ago

From what I can tell the jspm use of rollup gets a better size than rollup. The reason for this would be that the Babel plugin in jspm treats the Babel helpers as ES6 modules so they can be inlined by Rollup directly.

samccone commented 8 years ago

hmm fascinating... thx

samccone commented 8 years ago

hmmm @guybedford this actually increased your overall size by a few bytes

samccone commented 8 years ago

manually landed