Files
dolt/js/.babelrc
T
Erik Arvidsson 6af15cc9d4 JS: Use babel-plugin-transform-runtime
This uses external modules for all the babel helpers which leads
to a smaller binary.
2016-03-21 16:42:50 -07:00

53 lines
1.1 KiB
Plaintext

{
"env": {
"production": {
"presets": ["react", "es2015"],
"plugins": [
"syntax-async-functions",
"syntax-flow",
"transform-class-properties",
"transform-regenerator",
[
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
]
},
"development": {
"presets": ["react"],
"plugins": [
"syntax-async-functions",
"syntax-flow",
"transform-async-to-generator",
"transform-class-properties",
"transform-es2015-destructuring",
"transform-es2015-modules-commonjs",
"transform-es2015-parameters",
[
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
]
},
"es6": {
"presets": ["react"],
"plugins": [
"syntax-async-functions",
"syntax-flow",
"transform-async-to-generator",
"transform-class-properties",
[
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
]
},
}
}