Skip to content

Instantly share code, notes, and snippets.

@imerkle
Last active July 10, 2017 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imerkle/b707d842c841a79257b645adb0132fcb to your computer and use it in GitHub Desktop.
Save imerkle/b707d842c841a79257b645adb0132fcb to your computer and use it in GitHub Desktop.
babel rc react js
{
"presets": ["stage-1", "react"],
"plugins": ["transform-decorators-legacy","transform-class-properties"],
"env": {
"development": {
"sourceMaps": "both",
"plugins": [
"flow-react-proptypes",
"transform-flow-strip-types"
]
},
"test": {
"sourceMaps": "both",
"plugins": [
"flow-react-proptypes",
"transform-flow-strip-types"
]
},
"production": {
"presets": ["react-optimize"],
"plugins": ["groundskeeper-willie","babel-plugin-loop-optimizer","closure-elimination",
[
"direct-import",
[
{
"name": "material-ui",
"indexFile": "material-ui/index.js"
}
]
]
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment