Created
December 31, 2015 15:40
-
-
Save Pepeye/ae90f48bffdbd2a091b0 to your computer and use it in GitHub Desktop.
Babel ES6/ES2015 + ES7/ES2016 settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": [ | |
"es2015", | |
"react", | |
"stage-0" | |
], | |
"plugins": [ | |
"transform-runtime", | |
"add-module-exports", | |
"transform-decorators" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another option is to use babel-preset-node5 preset by @leebenson
note, use of babel-plugin-transform-decorators to provide proposed ES7 style decorators - useful for both the Relay and Redux frameworks.