@swc/core 1.2.189 → 1.2.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierignore +1 -0
- package/CHANGELOG.md +296 -0
- package/package.json +14 -14
- package/types.d.ts +4 -0
package/.prettierignore
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,305 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/minifier)** Apply name mangler for more cases (#4840) ([0567f67](https://github.com/swc-project/swc/commit/0567f67664cc2407d45bf8b17821edc4b828198c))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/minifier)** Make `if_return` to not drop required returns (#4847) ([8365c3d](https://github.com/swc-project/swc/commit/8365c3d0dff96c195fccebd4269ac279c068a624))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(html/codegen)** Prevent omitting body for title (#4814) ([7407f21](https://github.com/swc-project/swc/commit/7407f218f8b294d3d7998334bdd908abc519ecb0))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(html/parser)** Handle BOM (#4843) ([20fee8a](https://github.com/swc-project/swc/commit/20fee8abeee9f8e54082b02b2e83cff7ce72cc8f))
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(html/minifier)** Compress viewport meta (#4844) ([e6ae299](https://github.com/swc-project/swc/commit/e6ae299776d0ad285f2a93ed7371ff8592999ac6))
|
|
24
|
+
|
|
25
|
+
### Miscellaneous Tasks
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(ci)** Fix CI (#4852) ([142387b](https://github.com/swc-project/swc/commit/142387b2a307d062ce6c21d4cd3aac05dae8756f))
|
|
30
|
+
|
|
31
|
+
## [1.2.195] - 2022-05-29
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
- **(es/codegen)** Handle comments in binary expressions (#4817) ([1db71cc](https://github.com/swc-project/swc/commit/1db71cc3b3b230c09e1661093385f8f39915292c))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
- **(es/compat)** Use define for non-spread props (#4754) ([573bcb5](https://github.com/swc-project/swc/commit/573bcb5b492da2b27a79876c337aa0268beb706d))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
- **(es/minifier)** Consider side effects while removing an object spread (#4788) ([1c48a8c](https://github.com/swc-project/swc/commit/1c48a8c8f4ede63661c663cb548345a417c63cf6))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
- **(es/minifier)** Don't create names which is same as an unresolved var (#4806) ([073b146](https://github.com/swc-project/swc/commit/073b1469e6c81a9342bd09394832ee96339f07b4))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
- **(es/modules)** Fix local scoped amd require (#4800) ([2b03047](https://github.com/swc-project/swc/commit/2b03047cb088b96e5c054055780b54e4f48ae486))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
- **(es/modules)** Fix lazy option of common js (#4807) ([f4c6a20](https://github.com/swc-project/swc/commit/f4c6a20654ac172ce84e7fc0e0c5d7c98acbc535))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
- **(html/codegen)** Handle HTML entities correctly (#4782) ([d833057](https://github.com/swc-project/swc/commit/d833057d7917a376a020fd1ac3d3869b1dce1db7))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
- **(html/codegen)** Remove optional html start tag (#4811) ([c9d0e37](https://github.com/swc-project/swc/commit/c9d0e37ab97afe71f14877caed69d9371b6af6e7))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
- **(html/codegen)** Omit on more cases (#4825) ([2b7f4b2](https://github.com/swc-project/swc/commit/2b7f4b2f563a0c55482c0bc052dfd02df42b9eca))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- **(html/minifier)** Avoid removing id with spaces (#4786) ([c35cb59](https://github.com/swc-project/swc/commit/c35cb598f7a95795ea9d11ab7510f540a17d0639))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
- **(node)** Fix logging (#4833) ([c462d4d](https://github.com/swc-project/swc/commit/c462d4d7c6488a01416fcd7ea8759461e2c3a97a))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
- **(node/types)** Add `ignoreDynamic` to typescript types (#4832) ([e30449b](https://github.com/swc-project/swc/commit/e30449b097964e1ed883493bc4d0996e175db784))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
- **(preset-env)** Ignore unknown versions (#4809) ([78d4c2c](https://github.com/swc-project/swc/commit/78d4c2c46a767bd2409a2053c9d1f01f2d34c3f4))
|
|
74
|
+
|
|
75
|
+
### Features
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
- **(css/ast)** Add missing `Is` derive (#4810) ([29884b0](https://github.com/swc-project/swc/commit/29884b0caf02d0daea73eeff47b2e6cf93ec3acd))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
- **(es/compat)** Don't create vars for computed class methods if possible (#4805) ([dc911dc](https://github.com/swc-project/swc/commit/dc911dcae630dd1afe9add7c2b2bafcb77705ea7))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
- **(html/codegen)** Omit start and end tags if it is possible (#4780) ([c6ec9f9](https://github.com/swc-project/swc/commit/c6ec9f9cf20e149ce9cb8364403a031e3547741c))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
- **(html/minifier)** Compress more json types (#4813) ([731c59e](https://github.com/swc-project/swc/commit/731c59e9b7df7edd300871db8657e0d49b6b9a80))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
- **(node)** Split css binding (#4831) ([2e9ab05](https://github.com/swc-project/swc/commit/2e9ab0518a33f3b97541864cb7051a45606904ca))
|
|
92
|
+
|
|
93
|
+
### Miscellaneous Tasks
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
- **(common)** Update rustc (#4828) ([f847709](https://github.com/swc-project/swc/commit/f84770978719cda6eea689b9dd90259e9c2f05c9))
|
|
98
|
+
|
|
99
|
+
### Performance
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
- **(es/minifier)** Make more passes parallel (#4821) ([4b27df9](https://github.com/swc-project/swc/commit/4b27df9f123262161e06f242a4d5098364a9844f))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- **(es/minifier)** Make name mangler parallel (#4824) ([58b2427](https://github.com/swc-project/swc/commit/58b24278eeb83ac721aa73634b67849378d61f82))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
- **(html/parser)** Improve lexer (#4796) ([8894e77](https://github.com/swc-project/swc/commit/8894e77bc15d63080c5d91048734b33a8f299369))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
- **(html/parser)** Improve lexer (#4802) ([f71ef61](https://github.com/swc-project/swc/commit/f71ef61cb7056e602a9ae94f20d0757e795eff18))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
- **(html/parser)** Improve lexer performance even more (#4819) ([759688c](https://github.com/swc-project/swc/commit/759688c412f05032d79d3cdab42f65c83c57c005))
|
|
116
|
+
|
|
117
|
+
### Refactor
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- **(es/transforms)** Remove `concurrent` (#4808) ([a487fc1](https://github.com/swc-project/swc/commit/a487fc1d2827b5922eed0a03227da3e7a1371502))
|
|
122
|
+
|
|
123
|
+
### Testing
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- **(es/minifier)** Add snapshots for the mangler (#4823) ([7f69b9c](https://github.com/swc-project/swc/commit/7f69b9c80f44195164db9a4641642582e5d23979))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- **(html/codegen)** Avoid newline at the end of file (#4815) ([a6beda8](https://github.com/swc-project/swc/commit/a6beda81ca9812d95c4ac21b8ff67e672d10f57a))
|
|
131
|
+
|
|
132
|
+
## [1.2.194] - 2022-05-25
|
|
133
|
+
|
|
134
|
+
### Bug Fixes
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
- **(common)** Fix jemalloc (#4794) ([adf70f6](https://github.com/swc-project/swc/commit/adf70f6c0747e5a61d79897e11c70be0b41680d4))
|
|
139
|
+
|
|
140
|
+
### Features
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
- **(html/minifier)** Improve script type compression (#4785) ([b5e481c](https://github.com/swc-project/swc/commit/b5e481c114bba00c4f69f8df2a6309cd46ba8962))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
- **(html/minifier)** Sort classes (#4783) ([11aa6be](https://github.com/swc-project/swc/commit/11aa6bee9e1a0f31d2aec9b5111a4682e4c633ea))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
- **(plugin)** Implement `SourceMap.span_to_*` (#4781) ([a937357](https://github.com/swc-project/swc/commit/a937357d47471222db4e62021ec507cd96597d9c))
|
|
151
|
+
|
|
152
|
+
### Performance
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
- **(common)** Use `jemalloc` for linux (#4791) ([6f04e84](https://github.com/swc-project/swc/commit/6f04e846394df4bcf1e82748cd5df739b7df7a96))
|
|
157
|
+
|
|
158
|
+
### Testing
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
- **(es)** Make execution tests faster (#4789) ([38a866a](https://github.com/swc-project/swc/commit/38a866a900ff979b070bc2152459d41d75f414df))
|
|
163
|
+
|
|
164
|
+
## [1.2.192] - 2022-05-24
|
|
165
|
+
|
|
166
|
+
### Bug Fixes
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
- **(css/parser)** Allow `var()` call in color functions (#4713) ([07d31aa](https://github.com/swc-project/swc/commit/07d31aa50ab8420ee2e8e2751833385470337eae))
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
- **(es/compat)** Fix span of `instanceof` (#4757) ([8720f9a](https://github.com/swc-project/swc/commit/8720f9a948687d5851cb1cfc18961ac61d6406a2))
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
- **(es/compat)** Handle nested for loops with `break`/`continue` (#4777) ([4f00914](https://github.com/swc-project/swc/commit/4f00914c1af6e2dee7116c09dd6e63b5883cf8b5))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
- **(es/compat)** Handle nested `break`/`continue` in `block_scoping` (#4778) ([db1698e](https://github.com/swc-project/swc/commit/db1698e0129c80e32211d4c5545b11541445a471))
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
- **(es/compat)** Escape keywords in class method names (#4775) ([a3e4c20](https://github.com/swc-project/swc/commit/a3e4c201ded1b5b0cd021a4735e5dcae36284d5b))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
- **(es/fixer)** Preserve the paren in a spread element (#4771) ([65b7c4b](https://github.com/swc-project/swc/commit/65b7c4b69510d75065f79701020b8331ee3f88e4))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
- **(es/loader)** Fix `jsc.paths` on windows (#4739) ([417b218](https://github.com/swc-project/swc/commit/417b2182cead074c9ebf9358d53f353157637a8d))
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
- **(es/loader)** Fix hang related to `jsc.paths` (#4742) ([777ea37](https://github.com/swc-project/swc/commit/777ea371d0bd17c6acd7aa2e7b20057de4577c08))
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
- **(es/minifier)** Consider parameters while detecting pure calls (#4748) ([e4dee1e](https://github.com/swc-project/swc/commit/e4dee1ed3304f9b5950b99360054dc72201c80ad))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
- **(es/modules)** Adjust absolute path while rewriting imports (#4776) ([75bb858](https://github.com/swc-project/swc/commit/75bb8586cc7fa8ca08a9b8cf5db6c66eb5de9e85))
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
- **(es/modules/cjs)** FIx detection of exported names (#4737) ([d9bb59a](https://github.com/swc-project/swc/commit/d9bb59a8cb1998f87b0f115e9cc4b0b53923096a))
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
- **(es/resolver)** Handle `var` after catch with the same name (#4772) ([e2da3dd](https://github.com/swc-project/swc/commit/e2da3ddc03a6386e308a1b68ffee0e6bc786c16b))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
- **(es/resolver)** Fix more edge cases related to `catch` and `var` (#4773) ([f28d9c1](https://github.com/swc-project/swc/commit/f28d9c143ba0e23a2e23d5d53d3680b8a29d7b5e))
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
- **(es/typescript)** Mark namespaces as concrete (#4736) ([41d4437](https://github.com/swc-project/swc/commit/41d443767147f97909e6b1004cb4be6dcea207c1))
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
- **(es/typescript)** Preserve referenced imports for namespace (#4759) ([065b2a5](https://github.com/swc-project/swc/commit/065b2a514ff4429e52e244a9f090048f5f764d83))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
- **(html/codegen)** Emit `textarea` and `pre` in foreign context (#4766) ([8662665](https://github.com/swc-project/swc/commit/86626659b148fa8d76a433385eea4818c58ac031))
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
- **(html/parser)** Fix error reporting in the foreign context (#4725) ([4df0637](https://github.com/swc-project/swc/commit/4df06378179bc27562e84e0814c0878b8edf29f5))
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
- **(html/parser)** Fix parsing of closing tag in foreign contents (#4721) ([1c4d50f](https://github.com/swc-project/swc/commit/1c4d50f06a86a8c34d929090457f8970ed3b58e3))
|
|
222
|
+
|
|
223
|
+
### Features
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
- **(es/helpers)** Import only used helpers (#4767) ([b8d2fb8](https://github.com/swc-project/swc/commit/b8d2fb85461aba2dfd3ee599fbe6a2a42ff34f32))
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
- **(es/minifier)** Implement `pure_funcs` (#4710) ([9e42382](https://github.com/swc-project/swc/commit/9e423820916ab847731b8b484a165169174b80df))
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
- **(es/minifier)** Handle prefix update expressions with sequential inliner (#4741) ([a51816a](https://github.com/swc-project/swc/commit/a51816a577cb13a8af6e8086c5aab41b6ac79a58))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
- **(es/minifier)** Implement more rules (#4763) ([20b724d](https://github.com/swc-project/swc/commit/20b724d3cd184ce6bc82e244a9e6ef1d1f21cb96))
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
- **(es/modules/amd)** Support local-scoped amd requires (#4727) ([886585b](https://github.com/swc-project/swc/commit/886585b90e2f240e4d72091629bc547ab74f7e2e))
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
- **(html/codegen)** Omit end tags (#4770) ([07c197f](https://github.com/swc-project/swc/commit/07c197f51c7935f3825b79c8af4fca7baf18285c))
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
- **(html/parser)** Improve error reporting for misplaced non-space characters inside a table (#4723) ([e9b2ebf](https://github.com/swc-project/swc/commit/e9b2ebfc3bffb7d28b7ca0e50f8570aaed2f35e5))
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
- **(html/parser)** Improve error reporting (#4728) ([c346d30](https://github.com/swc-project/swc/commit/c346d309a7f2d16bac84bd9f8bdf74520ab6f711))
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
- **(html/parser)** Improve error reporting (#4740) ([51f4cea](https://github.com/swc-project/swc/commit/51f4cea10349145a66e45dabb78cc244784b3c98))
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
- **(html/parser)** Improve public api (#4762) ([c07780f](https://github.com/swc-project/swc/commit/c07780fab3bda752f43353871e5e69c5c4df0e84))
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
- **(plugin)** Implement more `SourceMap` apis (#4769) ([3298cb7](https://github.com/swc-project/swc/commit/3298cb790682524f740d3f6bff20ec4d07ed7075))
|
|
258
|
+
|
|
259
|
+
### Miscellaneous Tasks
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
- **(ci)** Fix CI (#4747) ([0f85f7b](https://github.com/swc-project/swc/commit/0f85f7b9de970648509aff8ac466fe25ab004cdb))
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
- **(ci)** Fix CI (#4779) ([c31b0a3](https://github.com/swc-project/swc/commit/c31b0a38ea16b784489bb4125403c1625d3895f1))
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
- **(es/minifier)** Add `#[doc(hidden)]` (#4751) ([22bf5f0](https://github.com/swc-project/swc/commit/22bf5f014e35ac4994d70660ae7e25cfb4659caf))
|
|
270
|
+
|
|
271
|
+
### Performance
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
- **(common)** Add more methods to `Spanned` (#4749) ([98df645](https://github.com/swc-project/swc/commit/98df64517efbc53021e4e386ad876f1f46bd17f0))
|
|
276
|
+
|
|
277
|
+
### Refactor
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
- **(es/minifier)** Make `rust-analyzer` faster (#4744) ([47e6cc5](https://github.com/swc-project/swc/commit/47e6cc519092af220cd735c2eedad3e7ad7f3e18))
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
- **(es/minifier)** Make `rust-analyzer` fast, really (#4746) ([49b3c27](https://github.com/swc-project/swc/commit/49b3c2715c3b418d982443f47e2c70e6959fd16f))
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
- **(es/parser)** Remove duplicate (#4750) ([b7a195a](https://github.com/swc-project/swc/commit/b7a195a1cf18763b19846b7f14efc80a0f17fd1e))
|
|
288
|
+
|
|
289
|
+
### Testing
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
- **(html/parser)** Enable error reporting tests (#4764) ([984d69e](https://github.com/swc-project/swc/commit/984d69e67b4a791922dd62050937a77f1f499927))
|
|
294
|
+
|
|
295
|
+
## [1.2.189] - 2022-05-21
|
|
296
|
+
|
|
297
|
+
### Bug Fixes
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
8
301
|
- **(es/codegen)** Fix numeric literals (#4733) ([ea46eb4](https://github.com/swc-project/swc/commit/ea46eb41e0e0581765c12a0f50b5c467beb878ea))
|
|
9
302
|
|
|
10
303
|
|
|
304
|
+
- **(es/config)** Respect `.swcrc` (#4735) ([9966e98](https://github.com/swc-project/swc/commit/9966e98ac692575032b04315dd269b1f05fe2ba4))
|
|
305
|
+
|
|
306
|
+
|
|
11
307
|
- **(html/parser)** Fix error reporting related to `image` (#4720) ([4cee4ac](https://github.com/swc-project/swc/commit/4cee4ac23804e8e43575477c41e5e0cfb624103a))
|
|
12
308
|
|
|
13
309
|
## [1.2.188] - 2022-05-21
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.196",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -135,18 +135,18 @@
|
|
|
135
135
|
"url": "https://opencollective.com/swc"
|
|
136
136
|
},
|
|
137
137
|
"optionalDependencies": {
|
|
138
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
139
|
-
"@swc/core-darwin-x64": "1.2.
|
|
140
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
141
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
142
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
143
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
144
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
145
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
146
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
147
|
-
"@swc/core-android-arm64": "1.2.
|
|
148
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
149
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
150
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
138
|
+
"@swc/core-win32-x64-msvc": "1.2.196",
|
|
139
|
+
"@swc/core-darwin-x64": "1.2.196",
|
|
140
|
+
"@swc/core-linux-x64-gnu": "1.2.196",
|
|
141
|
+
"@swc/core-linux-x64-musl": "1.2.196",
|
|
142
|
+
"@swc/core-freebsd-x64": "1.2.196",
|
|
143
|
+
"@swc/core-win32-ia32-msvc": "1.2.196",
|
|
144
|
+
"@swc/core-linux-arm64-gnu": "1.2.196",
|
|
145
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.196",
|
|
146
|
+
"@swc/core-darwin-arm64": "1.2.196",
|
|
147
|
+
"@swc/core-android-arm64": "1.2.196",
|
|
148
|
+
"@swc/core-linux-arm64-musl": "1.2.196",
|
|
149
|
+
"@swc/core-win32-arm64-msvc": "1.2.196",
|
|
150
|
+
"@swc/core-android-arm-eabi": "1.2.196"
|
|
151
151
|
}
|
|
152
152
|
}
|
package/types.d.ts
CHANGED
|
@@ -731,6 +731,10 @@ export interface BaseModuleConfig {
|
|
|
731
731
|
* Defaults to `false`.
|
|
732
732
|
*/
|
|
733
733
|
noInterop?: boolean;
|
|
734
|
+
/**
|
|
735
|
+
* If set to true, dynamic imports will be preserved.
|
|
736
|
+
*/
|
|
737
|
+
ignoreDynamic?: boolean;
|
|
734
738
|
}
|
|
735
739
|
export interface Es6Config extends BaseModuleConfig {
|
|
736
740
|
type: "es6";
|