| 1 |
// -------------------------------------------------------------------------- |
| 2 |
// --- Template .babelrc configuration file for Dome |
| 3 |
// -------------------------------------------------------------------------- |
| 4 |
|
| 5 |
/* |
| 6 |
Template from $(DOME)/template/babelrc.json |
| 7 |
|
| 8 |
This configuration is a necessary extension to electron-webpack |
| 9 |
for enabling react-hot-reloading. |
| 10 |
*/ |
| 11 |
|
| 12 |
{ |
| 13 |
"presets": [ |
| 14 |
[ |
| 15 |
"@babel/preset-env", { |
| 16 |
"modules": false |
| 17 |
} |
| 18 |
], |
| 19 |
[ |
| 20 |
"@babel/typescript", { |
| 21 |
"isTSX": true, |
| 22 |
"allExtensions": true |
| 23 |
} |
| 24 |
], |
| 25 |
"@babel/react" |
| 26 |
], |
| 27 |
"plugins": [ |
| 28 |
"@babel/plugin-transform-runtime", |
| 29 |
"@babel/plugin-proposal-class-properties", |
| 30 |
"@babel/proposal-object-rest-spread", |
| 31 |
"react-hot-loader/babel" |
| 32 |
] |
| 33 |
} |