Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Traceur Compiler with 6to5 #116

Open
alongubkin opened this issue Dec 3, 2014 · 6 comments
Open

Replace Traceur Compiler with 6to5 #116

alongubkin opened this issue Dec 3, 2014 · 6 comments
Assignees
Milestone

Comments

@alongubkin
Copy link
Owner

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 alongubkin self-assigned this Dec 3, 2014
@alongubkin alongubkin added this to the 0.1.3 milestone Dec 3, 2014
@michaelstephendavies
Copy link
Contributor

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

@shfx
Copy link

shfx commented Dec 4, 2014

👍

@Namek
Copy link
Collaborator

Namek commented Dec 4, 2014

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

@zekesonxx
Copy link
Contributor

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.

@jamiebuilds
Copy link

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!

@zekesonxx
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants