Skip to content

Instantly share code, notes, and snippets.

@jhen0409
Last active November 15, 2015 17:40
Show Gist options
  • Save jhen0409/e5e3686b9725805fd41f to your computer and use it in GitHub Desktop.
Save jhen0409/e5e3686b9725805fd41f to your computer and use it in GitHub Desktop.
Node 4.0.0 babel 5 blacklist
{
"stage": 0,
"blacklist": [
"es6.arrowFunctions",
"es6.blockScoping",
"es6.classes", // Don't black this if you are using ES7 classes features
"es6.forOf",
"es6.templateLiterals",
"es6.constants",
"es6.properties.computed",
"es6.properties.shorthand"
]
}
@Qrysto
Copy link

Qrysto commented Sep 16, 2015

Seems that "regenerator" should not be blacklisted. I'm using async functions & await and putting regenerator in blacklist yields an error.
How about "es6.blockScoping"? Isn't it supported in node 4.0.0? https://nodejs.org/en/docs/es6/

@jhen0409
Copy link
Author

@Qrysto
Fixed. Thx :)

For es6.blockScoping, I have found a problem #2401. (Fixed by #2405)

@jhen0409
Copy link
Author

Can use following modules if use Babel 6:

babel-preset-es2015-node4
babel-preset-es2015-node5

and use babel-preset-stage-x to support ES7

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