Created
February 19, 2018 23:14
-
-
Save Nantris/755aa3af6290e9c64ffe55e9876f6b76 to your computer and use it in GitHub Desktop.
.babelrc example
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": [ | |
["env", { | |
"targets": { "node": 8 }, | |
"useBuiltIns": true | |
}], | |
"stage-0", | |
"react" | |
], | |
"plugins": [ | |
"add-module-exports", | |
"transform-runtime" | |
], | |
"env": { | |
"production": { | |
"presets": ["react-optimize"], | |
"plugins": ["dev-expression"] | |
}, | |
"development": { | |
"plugins": [ | |
"transform-class-properties", | |
"transform-es2015-classes", | |
["flow-runtime", { | |
"assert": true, | |
"annotate": true | |
}] | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment