Last active
March 17, 2016 11:01
-
-
Save prashcr/a80bb835d3305a000a86 to your computer and use it in GitHub Desktop.
Babel preset example from http://survivejs.com/webpack_react/webpack_and_react/#defining-your-own-babel-presets
This file contains hidden or 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
module.exports = { | |
// You can also include other presets | |
presets: ['es2015'], | |
plugins: [ | |
require('babel-plugin-syntax-class-properties'), | |
require('babel-plugin-syntax-decorators'), | |
require('babel-plugin-syntax-object-rest-spread'), | |
// You can pass parameters using an array syntax | |
[ | |
require('babel-plugin-transform-regenerator'), | |
{ | |
async: false, | |
asyncGenerators: false | |
} | |
] | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment