|
1 | 1 | module.exports = { |
2 | | - "sourceMaps": true, |
3 | | - "presets": [ |
4 | | - ["@babel/preset-env", { |
5 | | - "targets": { |
6 | | - "browsers": [ |
7 | | - "last 2 versions" |
8 | | - ] |
9 | | - } |
10 | | - }], |
11 | | - "@babel/preset-typescript", |
12 | | - "@babel/preset-flow", |
13 | | - "@babel/preset-react" |
14 | | - ], |
15 | | - "plugins": [ |
16 | | - ["@babel/plugin-proposal-decorators", {"legacy": true}], |
17 | | - "@babel/plugin-proposal-export-default-from", |
18 | | - "@babel/plugin-proposal-numeric-separator", |
19 | | - "@babel/plugin-proposal-class-properties", |
20 | | - "@babel/plugin-proposal-object-rest-spread", |
21 | | - "@babel/plugin-transform-flow-comments", |
22 | | - "@babel/plugin-syntax-dynamic-import", |
23 | | - "@babel/plugin-transform-runtime" |
24 | | - ] |
| 2 | + "sourceMaps": true, |
| 3 | + "presets": [ |
| 4 | + ["@babel/preset-env", { |
| 5 | + "targets": [ |
| 6 | + "last 2 Chrome versions", "last 2 Firefox versions", "last 2 Safari versions" |
| 7 | + ], |
| 8 | + }], |
| 9 | + "@babel/preset-typescript", |
| 10 | + "@babel/preset-flow", |
| 11 | + "@babel/preset-react" |
| 12 | + ], |
| 13 | + "plugins": [ |
| 14 | + ["@babel/plugin-proposal-decorators", {decoratorsBeforeExport: true}], |
| 15 | + "@babel/plugin-proposal-export-default-from", |
| 16 | + "@babel/plugin-proposal-numeric-separator", |
| 17 | + "@babel/plugin-proposal-class-properties", |
| 18 | + "@babel/plugin-proposal-object-rest-spread", |
| 19 | + "@babel/plugin-transform-flow-comments", |
| 20 | + "@babel/plugin-syntax-dynamic-import", |
| 21 | + "@babel/plugin-transform-runtime" |
| 22 | + ] |
25 | 23 | }; |
0 commit comments