| 1 |
{ |
| 2 |
"presets": [ |
| 3 |
[ |
| 4 |
"@babel/preset-env", |
| 5 |
{ |
| 6 |
"modules": false, // don't convert modules into CommonJS |
| 7 |
"useBuiltIns": "usage", // use polyfill when needed |
| 8 |
"corejs": 3 |
| 9 |
} |
| 10 |
], |
| 11 |
"@babel/preset-react" |
| 12 |
], |
| 13 |
"plugins": [ |
| 14 |
"@babel/plugin-syntax-dynamic-import", |
| 15 |
"@babel/plugin-proposal-object-rest-spread", |
| 16 |
"@babel/plugin-proposal-class-properties", |
| 17 |
[ |
| 18 |
"@babel/plugin-transform-runtime", |
| 19 |
{ |
| 20 |
"corejs": 3, |
| 21 |
"useESModules": true |
| 22 |
} |
| 23 |
] |
| 24 |
], |
| 25 |
"env": { |
| 26 |
"development": { |
| 27 |
"plugins": ["@babel/plugin-transform-react-jsx"] |
| 28 |
} |
| 29 |
} |
| 30 |
} |