|
1 | 1 | {
|
2 |
| - "presets": [ |
3 |
| - [ |
4 |
| - "@babel/env", |
5 |
| - { |
6 |
| - "modules": false, |
| 2 | + "presets": [ |
| 3 | + [ |
| 4 | + "@babel/env", |
| 5 | + { |
| 6 | + "modules": false, |
| 7 | + "targets": { |
| 8 | + "browsers": [ |
| 9 | + ">0.25%" |
| 10 | + ] |
| 11 | + }, |
| 12 | + "useBuiltIns": "usage" |
| 13 | + } |
| 14 | + ], |
| 15 | + "@babel/typescript" |
| 16 | + ], |
| 17 | + "env": { |
| 18 | + "development": { |
| 19 | + "plugins": [ |
| 20 | + "@babel/transform-runtime" |
| 21 | + ] |
| 22 | + }, |
| 23 | + "production": { |
| 24 | + "plugins": [ |
| 25 | + "@babel/transform-runtime", |
| 26 | + "transform-remove-console" |
| 27 | + ] |
| 28 | + }, |
| 29 | + "test": { |
| 30 | + "presets": [ |
| 31 | + [ |
| 32 | + "@babel/env", |
| 33 | + { |
| 34 | + "modules": "commonjs", |
7 | 35 | "targets": {
|
8 |
| - "browsers": [ |
9 |
| - ">0.25%" |
10 |
| - ] |
11 |
| - }, |
12 |
| - "useBuiltIns": "usage" |
13 |
| - } |
14 |
| - ], |
15 |
| - "@babel/typescript" |
16 |
| - ], |
17 |
| - "env": { |
18 |
| - "development": { |
19 |
| - "plugins": [ |
20 |
| - "@babel/transform-runtime" |
21 |
| - ] |
22 |
| - }, |
23 |
| - "production": { |
24 |
| - "plugins": [ |
25 |
| - "@babel/transform-runtime", |
26 |
| - "transform-remove-console" |
27 |
| - ] |
28 |
| - }, |
29 |
| - "test": { |
30 |
| - "presets": [ |
31 |
| - [ |
32 |
| - "@babel/env", |
33 |
| - { |
34 |
| - "modules": "commonjs", |
35 |
| - "targets": { |
36 |
| - "node": "current" |
37 |
| - } |
38 |
| - } |
39 |
| - ], |
40 |
| - [ |
41 |
| - "@babel/stage-1", |
42 |
| - { |
43 |
| - "decoratorsLegacy": true |
44 |
| - } |
45 |
| - ], |
46 |
| - "@babel/typescript" |
47 |
| - ], |
48 |
| - "plugins": [ |
49 |
| - "@babel/transform-runtime", |
50 |
| - "@babel/plugin-transform-modules-commonjs" |
51 |
| - ] |
| 36 | + "node": "current" |
| 37 | + } |
| 38 | + } |
| 39 | + ], |
| 40 | + "@babel/typescript" |
| 41 | + ] |
| 42 | + } |
| 43 | + }, |
| 44 | + "plugins": [ |
| 45 | + "@babel/plugin-syntax-dynamic-import", |
| 46 | + "@babel/plugin-syntax-import-meta", |
| 47 | + "@babel/plugin-proposal-class-properties", |
| 48 | + "@babel/plugin-proposal-json-strings", |
| 49 | + [ |
| 50 | + "@babel/plugin-proposal-decorators", |
| 51 | + { |
| 52 | + "legacy": true |
| 53 | + } |
| 54 | + ], |
| 55 | + "@babel/plugin-proposal-function-sent", |
| 56 | + "@babel/plugin-proposal-export-namespace-from", |
| 57 | + "@babel/plugin-proposal-numeric-separator", |
| 58 | + "@babel/plugin-proposal-throw-expressions", |
| 59 | + "@babel/plugin-proposal-export-default-from", |
| 60 | + "@babel/plugin-proposal-logical-assignment-operators", |
| 61 | + "@babel/plugin-proposal-optional-chaining", |
| 62 | + [ |
| 63 | + "@babel/plugin-proposal-pipeline-operator", |
| 64 | + { |
| 65 | + "proposal": "minimal" |
52 | 66 | }
|
53 |
| - }, |
54 |
| - "plugins": [ |
55 |
| - "@babel/plugin-syntax-dynamic-import", |
56 |
| - "@babel/plugin-syntax-import-meta", |
57 |
| - "@babel/plugin-proposal-class-properties", |
58 |
| - "@babel/plugin-proposal-json-strings", |
59 |
| - [ |
60 |
| - "@babel/plugin-proposal-decorators", |
61 |
| - { |
62 |
| - "legacy": true |
63 |
| - } |
64 |
| - ], |
65 |
| - "@babel/plugin-proposal-function-sent", |
66 |
| - "@babel/plugin-proposal-export-namespace-from", |
67 |
| - "@babel/plugin-proposal-numeric-separator", |
68 |
| - "@babel/plugin-proposal-throw-expressions", |
69 |
| - "@babel/plugin-proposal-export-default-from", |
70 |
| - "@babel/plugin-proposal-logical-assignment-operators", |
71 |
| - "@babel/plugin-proposal-optional-chaining", |
72 |
| - [ |
73 |
| - "@babel/plugin-proposal-pipeline-operator", |
74 |
| - { |
75 |
| - "proposal": "minimal" |
76 |
| - } |
77 |
| - ], |
78 |
| - "@babel/plugin-proposal-nullish-coalescing-operator", |
79 |
| - "@babel/plugin-proposal-do-expressions" |
80 |
| - ] |
| 67 | + ], |
| 68 | + "@babel/plugin-proposal-nullish-coalescing-operator", |
| 69 | + "@babel/plugin-proposal-do-expressions" |
| 70 | + ] |
81 | 71 | }
|
0 commit comments