-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Disable babel via --no-babel
flag
#424
Comments
Nope, not at the moment. I was also wondering whether we should have an ability to turn off babel. I think we should leave it as a feature request. |
Cool, thanks for the reply @vdemedes. The test below would break when using Babel.
Updated: const favorite = 7;
favorite = 15;
t.is(favorite, 7);
//=> Error: "favorite" is read-only. |
@ghpabs That is invalid. Use |
Hi @sindresorhus, I don't believe it's invalid JS - at least not in Node from what I can see. Try running the following code in the Node REPL. const foo = 7;
foo = 15;
console.log(foo);
//=> 7; No errors were thrown. Ps. Maybe this piece of code is only adding complexity to the issue. The original intent for this ticket was the question around disabling Babel. Thanks! Edit: Node v5.3.0 |
It's true that it works in sloppy mode (which the REPL is running in), but you should really not depend on that. It's the wrong use of
The whole point of Not derailing this issue. We'll consider you request. Just wanted to point it out to you. |
Great, thanks for taking the time to explain it. Love your work. |
We've talked it over and decided that a |
@jamestalmage: I'll take that on, I need something to do on the plane
|
@ariporad 👍 I thought you might 😄 |
Any updates on this one @ariporad? |
#448 should let you specify an empty babel config. If I'm not mistaken this makes Babel a no-op, achieving the same as a @sindresorhus I suppose we could close this in favor of #448? Could make a new issue for documentation purposes. |
Yes, let's close it in favor of #448 (comment), which should handle that. |
I'm wondering if it's possible to disable Babel "transpilation" phase when I run AVA.
I'm using Node 5.x which already has all ES6 features that I need to use.
The text was updated successfully, but these errors were encountered: