|
1 | 1 | { |
2 | 2 | "presets": [ |
3 | | - "react", |
| 3 | + "@babel/preset-react", |
4 | 4 | [ |
5 | | - "env", |
| 5 | + "@babel/preset-env", |
6 | 6 | { |
7 | 7 | "targets": { |
8 | 8 | "browsers": ["last 2 versions", "IE >= 8"], |
9 | 9 | "node": "current" |
10 | 10 | }, |
11 | 11 | "useBuiltIns": "entry" |
12 | 12 | } |
13 | | - ], |
14 | | - "stage-0" |
| 13 | + ] |
15 | 14 | ], |
16 | 15 | "plugins": [ |
17 | | - "transform-runtime", |
18 | | - "transform-decorators-legacy", |
| 16 | + [ |
| 17 | + "@babel/plugin-transform-runtime", |
| 18 | + { |
| 19 | + "corejs": 2 |
| 20 | + } |
| 21 | + ], |
| 22 | + [ |
| 23 | + "@babel/plugin-proposal-decorators", |
| 24 | + { |
| 25 | + "legacy": true |
| 26 | + } |
| 27 | + ], |
19 | 28 | "react-loadable/babel", |
20 | | - "react-hot-loader/babel" |
| 29 | + "react-hot-loader/babel", |
| 30 | + "@babel/plugin-syntax-dynamic-import", |
| 31 | + "@babel/plugin-syntax-import-meta", |
| 32 | + "@babel/plugin-proposal-class-properties", |
| 33 | + "@babel/plugin-proposal-json-strings", |
| 34 | + "@babel/plugin-proposal-function-sent", |
| 35 | + "@babel/plugin-proposal-export-namespace-from", |
| 36 | + "@babel/plugin-proposal-numeric-separator", |
| 37 | + "@babel/plugin-proposal-throw-expressions", |
| 38 | + "@babel/plugin-proposal-export-default-from", |
| 39 | + "@babel/plugin-proposal-logical-assignment-operators", |
| 40 | + "@babel/plugin-proposal-optional-chaining", |
| 41 | + [ |
| 42 | + "@babel/plugin-proposal-pipeline-operator", |
| 43 | + { |
| 44 | + "proposal": "minimal" |
| 45 | + } |
| 46 | + ], |
| 47 | + "@babel/plugin-proposal-nullish-coalescing-operator", |
| 48 | + "@babel/plugin-proposal-do-expressions", |
| 49 | + "@babel/plugin-proposal-function-bind" |
21 | 50 | ], |
22 | 51 | "env": { |
23 | 52 | "development": { |
24 | 53 | "plugins": [ |
25 | | - "transform-react-jsx-source" |
| 54 | + "@babel/plugin-transform-react-jsx-source" |
26 | 55 | ] |
27 | 56 | } |
28 | 57 | } |
|
0 commit comments