0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/.babelrc
Juan Picado @jotadeveloper 0af6f5a865
feat: using code splitting on routers
* enable syntax-dynamic-import
2018-06-03 18:34:41 +02:00

73 lines
1.6 KiB
Text

{
"env": {
"ui": {
"presets": [
"react",
["env",{
"targets": {
"browsers": [
"last 5 versions",
"FireFox >= 44",
"Safari >= 7",
"Explorer 11",
"last 4 Edge versions"
],
"loose": true
}
}],
"stage-2",
"stage-3"
],
"plugins": [
"react-hot-loader/babel",
"transform-runtime",
"transform-object-rest-spread",
"transform-decorators-legacy",
"syntax-dynamic-import"
]
},
"test": {
"presets": [["env", {
"targets": {
"node": "6.10"
}
}], "flow", "react"],
"plugins": [
"transform-class-properties",
"transform-object-rest-spread"
]
},
"testE2E": {
/** for an issue on puppeteer env we need to use es2015-node4 **/
"presets": [ "es2015-node4", "flow"],
"plugins": [
"transform-class-properties",
"transform-object-rest-spread"
]
},
"registry": {
"presets": [
["env", {
"targets": {
"node": "6.10"
}
}], "stage-3", "flow"],
"plugins": [
"transform-object-rest-spread",
"transform-class-properties"
]
},
"registry-docker": {
"presets": [
["env", {
"targets": {
"node": "9"
}
}], "flow"]
},
"development": {
"presets": ["flow"],
"plugins": ["flow-runtime"]
}
}
}