|
1 | 1 | {
|
2 | 2 | "env": {
|
3 | 3 | "development": {
|
4 |
| - "presets": [ |
5 |
| - "@babel/preset-env" |
6 |
| - ], |
7 |
| - "plugins": [ |
8 |
| - "@babel/plugin-syntax-dynamic-import", |
9 |
| - "@babel/plugin-syntax-import-meta", |
10 |
| - "@babel/plugin-proposal-class-properties", |
11 |
| - "@babel/plugin-proposal-json-strings", |
12 |
| - [ |
13 |
| - "@babel/plugin-proposal-decorators", |
14 |
| - { |
15 |
| - "legacy": true |
16 |
| - } |
17 |
| - ], |
18 |
| - "@babel/plugin-proposal-function-sent", |
19 |
| - "@babel/plugin-proposal-export-namespace-from", |
20 |
| - "@babel/plugin-proposal-numeric-separator", |
21 |
| - "@babel/plugin-proposal-throw-expressions", |
22 |
| - "@babel/plugin-proposal-export-default-from", |
23 |
| - "@babel/plugin-proposal-logical-assignment-operators", |
24 |
| - "@babel/plugin-proposal-optional-chaining", |
25 |
| - [ |
26 |
| - "@babel/plugin-proposal-pipeline-operator", |
27 |
| - { |
28 |
| - "proposal": "minimal" |
29 |
| - } |
30 |
| - ], |
31 |
| - "@babel/plugin-proposal-nullish-coalescing-operator", |
32 |
| - "@babel/plugin-proposal-do-expressions" |
33 |
| - ] |
34 |
| - }, |
| 4 | + "presets": ["env", "stage-1"] |
| 5 | + }, |
35 | 6 | "production": {
|
36 |
| - "presets": [ |
37 |
| - "@babel/preset-env" |
38 |
| - ], |
39 |
| - "plugins": [ |
40 |
| - "@babel/plugin-syntax-dynamic-import", |
41 |
| - "@babel/plugin-syntax-import-meta", |
42 |
| - "@babel/plugin-proposal-class-properties", |
43 |
| - "@babel/plugin-proposal-json-strings", |
44 |
| - [ |
45 |
| - "@babel/plugin-proposal-decorators", |
46 |
| - { |
47 |
| - "legacy": true |
48 |
| - } |
49 |
| - ], |
50 |
| - "@babel/plugin-proposal-function-sent", |
51 |
| - "@babel/plugin-proposal-export-namespace-from", |
52 |
| - "@babel/plugin-proposal-numeric-separator", |
53 |
| - "@babel/plugin-proposal-throw-expressions", |
54 |
| - "@babel/plugin-proposal-export-default-from", |
55 |
| - "@babel/plugin-proposal-logical-assignment-operators", |
56 |
| - "@babel/plugin-proposal-optional-chaining", |
57 |
| - [ |
58 |
| - "@babel/plugin-proposal-pipeline-operator", |
59 |
| - { |
60 |
| - "proposal": "minimal" |
61 |
| - } |
62 |
| - ], |
63 |
| - "@babel/plugin-proposal-nullish-coalescing-operator", |
64 |
| - "@babel/plugin-proposal-do-expressions" |
65 |
| - ] |
66 |
| - }, |
| 7 | + "presets": ["env", "stage-1"] |
| 8 | + }, |
67 | 9 | "workers": {
|
68 |
| - "presets": [ |
69 |
| - [ |
70 |
| - "@babel/preset-env", |
71 |
| - { |
72 |
| - "modules": false |
73 |
| - } |
74 |
| - ] |
75 |
| - ], |
76 |
| - "plugins": [ |
77 |
| - "@babel/plugin-syntax-dynamic-import", |
78 |
| - "@babel/plugin-syntax-import-meta", |
79 |
| - "@babel/plugin-proposal-class-properties", |
80 |
| - "@babel/plugin-proposal-json-strings", |
81 |
| - [ |
82 |
| - "@babel/plugin-proposal-decorators", |
83 |
| - { |
84 |
| - "legacy": true |
85 |
| - } |
86 |
| - ], |
87 |
| - "@babel/plugin-proposal-function-sent", |
88 |
| - "@babel/plugin-proposal-export-namespace-from", |
89 |
| - "@babel/plugin-proposal-numeric-separator", |
90 |
| - "@babel/plugin-proposal-throw-expressions", |
91 |
| - "@babel/plugin-proposal-export-default-from", |
92 |
| - "@babel/plugin-proposal-logical-assignment-operators", |
93 |
| - "@babel/plugin-proposal-optional-chaining", |
94 |
| - [ |
95 |
| - "@babel/plugin-proposal-pipeline-operator", |
96 |
| - { |
97 |
| - "proposal": "minimal" |
98 |
| - } |
99 |
| - ], |
100 |
| - "@babel/plugin-proposal-nullish-coalescing-operator", |
101 |
| - "@babel/plugin-proposal-do-expressions" |
102 |
| - ] |
| 10 | + "presets": [["env", { "modules": false }], "stage-1"] |
103 | 11 | }
|
104 | 12 | }
|
105 | 13 | }
|
0 commit comments