Skip to content

Instantly share code, notes, and snippets.

@neroze
Created May 9, 2018 10:09
Show Gist options
  • Save neroze/0ad6b679d80a0dd4ae62cb55aab0cc26 to your computer and use it in GitHub Desktop.
Save neroze/0ad6b679d80a0dd4ae62cb55aab0cc26 to your computer and use it in GitHub Desktop.
.babelrc config
{
"env": {
"production": {
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "safari >= 7"]
}
}],
"react"
],
"plugins": [
"system-import-transformer",
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-assign",
"transform-object-rest-spread",
"transform-regenerator",
]
},
"development": {
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "safari >= 7"]
}
}],
"react"
],
"plugins": [
"system-import-transformer",
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-assign",
"transform-object-rest-spread",
"transform-regenerator",
],
},
"test": {
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "safari >= 7"]
}
}],
"react"
],
"plugins": [
"system-import-transformer",
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-assign",
"transform-object-rest-spread",
"transform-regenerator",
["module-resolver", {
"root": ["./src"],
"alias": {
"marionette" : "./out/imported/backbone-marionette",
"backbone" : "./out/imported/backbone",
"react-popper" : "./out/imported/react-popper",
"app" : "./src/scripts/app",
"baseApp" : "./src/scripts/baseApp/baseApp",
"label_searchResult_component" : "./src/scripts/modules/label/find/components/searchResult.esm",
"countries2" : "./src/scripts/baseApp/common/resources/src/countries2",
"simple-react-validator" : "./src/scripts/baseApp/common/vendor/simple-react-validator",
"autocomplete" : "./src/vendor/autocomplete",
}
}]
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment