spider icon indicating copy to clipboard operation
spider copied to clipboard

Replace Traceur Compiler with 6to5

Open alongubkin opened this issue 10 years ago • 6 comments

6to5 is an ES6 to ES5 compiler. But unlike Traceur compiler, it outputs clean code without runtime. We should use it instead of Traceur.

https://6to5.github.io/differences.html

alongubkin avatar Dec 03 '14 11:12 alongubkin

It does have a runtime: https://6to5.github.io/polyfill.html

michaelstephendavies avatar Dec 03 '14 15:12 michaelstephendavies

:+1:

shfx avatar Dec 04 '14 14:12 shfx

Nice to have for debugging in environment not supporting source mapping. By the way, which are such?

Namek avatar Dec 04 '14 16:12 Namek

6to5 has a polyfill and a runtime, the polyfill exists as a polyfill for ES6 features, and the runtime is just a replacement for code that would otherwise be placed at the top of the file.

I vote for this, as even though it still has the polyfill, it'll be a lot more pleasant. Additionally, typing 6to5 is much quicker than typing traceur.

zekesonxx avatar Dec 05 '14 19:12 zekesonxx

Hi guys, I'm a contributor to 6to5. We'd love if spider used 6to5. If you need any help with this feel free to stop by our gitter room. If you have any specific questions about the differences between 6to5 and other transpilers let me know!

jamiebuilds avatar Dec 07 '14 02:12 jamiebuilds

Initial implementation: https://github.com/zekesonxx/spider/tree/es5-6to5

zekesonxx avatar Dec 07 '14 15:12 zekesonxx