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

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

Add JSPM #20

Closed adamburgess closed 8 years ago

adamburgess commented 8 years ago

This patch adds JSPM, version 0.17 beta 5. This latest beta version utilises rollup.

I haven't measured the times.

one small note: JSPM expects modules to be in a subdirectory. I had to symlink the src directory to get around this.

samccone commented 8 years ago

boom awesome thanks for the PR!

I will land this tonight with all of the others... thanks!

samccone commented 8 years ago

Hi @AdamBurgess turns out this patch causes the code to be broken

screen shot 2016-02-02 at 6 03 14 pm

Let me know if you get this working

adamburgess commented 8 years ago

It seemed to work for me when I bundled it....I'll test again.

samccone commented 8 years ago

(going to investigate the src code changes needed to enable this kind of mangling so no action needed just yet)

adamburgess commented 8 years ago

It works for me fine in Chrome 50.0.2633.3... Are you still getting a 14993 byte file?

If you think it's due to mangling, you can add --no-mangle to jspm build, which brings the total size up to 19,943 bytes.

samccone commented 8 years ago

manually landed... thanks!

you can track the progress here https://github.com/samccone/The-cost-of-transpiling-es2015-in-2016/tree/mangle