Skip to content

Instantly share code, notes, and snippets.

@wldcordeiro
Created February 15, 2018 01:55
Show Gist options
  • Save wldcordeiro/5ee9713f97cef8e7f389a33732494c9f to your computer and use it in GitHub Desktop.
Save wldcordeiro/5ee9713f97cef8e7f389a33732494c9f to your computer and use it in GitHub Desktop.
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": ["last 2 versions", "not ie < 11"]
},
"modules": false,
"useBuiltIns": true
}
],
"@babel/preset-react"
],
"plugins": [
"transform-object-rest-spread",
"transform-class-properties",
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-export-namespace-from",
[
"module-resolver",
{
"alias": {
"rx": "./src/rx/",
"store": "./src/redux/",
"report-error": "./src/report-error/",
"constants": "./src/constants"
}
}
]
],
"env": {
"development": {
"plugins": ["@babel/plugin-transform-react-jsx-source"]
},
"production": {
"plugins": ["transform-react-remove-prop-types"]
},
"test": {
"plugins": ["@babel/plugin-transform-modules-commonjs"]
},
"qa": {
"plugins": [
[
"react-remove-properties",
{ "properties": ["data-id", "data-selector"] }
]
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment