Last active
July 10, 2017 15:55
-
-
Save imerkle/b707d842c841a79257b645adb0132fcb to your computer and use it in GitHub Desktop.
babel rc react js
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": ["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