-
Notifications
You must be signed in to change notification settings - Fork 0
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
Switch to es6 + generators #8
Comments
use regenerator instead of traceur, i believe it has a cleaner compiled output. |
@Raynos sounds interesting. Does it support other es6 features, like arrows and modules as well? |
no. just generators. Which means you can run your module WITHOUT a compile step in You can even use |
Cool, thanks for the info. I'll have a look at regenerator. I'd really like to use arrows, but I'm not really sure yet if it's practical or just too annoying with a build step. |
@briancavalier for open source modules i highly recommend avoiding a build step. For applications (private or open, just not published to npm) go nuts. |
@briancavalier remember that when i use your module and it breaks i have to read an unreadable auto generated stack trace from traceur. |
Yeah, this quite a compelling point ... traceur stack traces are useless in my experience. |
Yes, good point, @Raynos. The less code transformations, the better, imho. |
Why?
One strategy would be to move all source files to a
src
dir tree (ie move<root>gent.js
tosrc/gent.js
, etc.), and use traceur to build back to the root dir (ie buildsrc/gent.js
to<root>/gent.js
, etc.) in commonjs format onprepublish
.The text was updated successfully, but these errors were encountered: