@swc/core 1.3.3 → 1.3.5

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.
Files changed (4) hide show
  1. package/CHANGELOG.md +238 -0
  2. package/README.md +33 -37
  3. package/package.json +15 -14
  4. package/types.d.ts +10 -4
package/CHANGELOG.md CHANGED
@@ -5,6 +5,244 @@
5
5
 
6
6
 
7
7
 
8
+ - **(bindings)** Fix type definitions (#6018) ([8fea8ca](https://github.com/swc-project/swc/commit/8fea8ca3fa5d9d441b67bffe5f64efbcc9ea4d2c))
9
+
10
+
11
+ - **(cli)** Configure `GLOBALS` (#6061) ([6cdb5ed](https://github.com/swc-project/swc/commit/6cdb5ed97fb821fa9ac04306eaa8a2e0f42260af))
12
+
13
+
14
+ - **(es)** Respect exclude option (#6054) ([69da081](https://github.com/swc-project/swc/commit/69da0817982eda2e9e9e755e3526f83286e874b1))
15
+
16
+
17
+ - **(es/codegen)** Improve performance of debug build (#6003) ([8b31b65](https://github.com/swc-project/swc/commit/8b31b65059a3b62fd1d12be57e0b62f62e499354))
18
+
19
+
20
+ - **(es/compat)** Fix handling of deep array pattern of object rest pass (#6035) ([0c67a3a](https://github.com/swc-project/swc/commit/0c67a3adbaec69d72016fe7c525223888d34ef3e))
21
+
22
+
23
+ - **(es/compat)** Fix handling of op-assignment in `generator` (#6036) ([7554482](https://github.com/swc-project/swc/commit/755448220529f82e82b56624e5a431c256c172ba))
24
+
25
+
26
+ - **(es/minifier)** Don't inline into nested scope (#6002) ([2ee3ad0](https://github.com/swc-project/swc/commit/2ee3ad00663a515697769cef55ad5606e14943da))
27
+
28
+
29
+ - **(es/minifier)** Don't evaluate `String.fromCharCode` for non-ascii values (#6033) ([197c4e2](https://github.com/swc-project/swc/commit/197c4e269d639a188bc3cca01f8618a61fed8d58))
30
+
31
+
32
+ - **(es/minifier)** Don't skip unresolved identifiers (#6050) ([c5fb774](https://github.com/swc-project/swc/commit/c5fb7744870dd2ba9ec606513c4e17142035ed14))
33
+
34
+
35
+ - **(es/minifier)** Fix optimization of numeric keys (#6052) ([e3b55e4](https://github.com/swc-project/swc/commit/e3b55e4bcf2bc12bbcc0fb2cb65e0931622d5dcb))
36
+
37
+
38
+ - **(es/minifier)** Fix analysis of var declaration after usage (#6043) ([36d467e](https://github.com/swc-project/swc/commit/36d467e7d7792bff9f735171a611b714e108e41f))
39
+
40
+
41
+ - **(es/minifier)** Fix infection analysis of sequential inliner (#6053) ([d65fba1](https://github.com/swc-project/swc/commit/d65fba134d50609543c1d1ef0dc07db9891913ac))
42
+
43
+
44
+ - **(es/minifier)** Mark `delete` as a property mutation (#6063) ([38df597](https://github.com/swc-project/swc/commit/38df5978c14c1fd7c24c0881f7cd1c19021b3f9f))
45
+
46
+
47
+ - **(es/renamer)** Use a separate scope for the name of `FnExpr` (#6008) ([31ffd5a](https://github.com/swc-project/swc/commit/31ffd5a01dc9a20de36c9b9606a15c42f023e72f))
48
+
49
+ ### Features
50
+
51
+
52
+
53
+ - **(css/modules)** Implement css modules (#6000) ([2cce1c8](https://github.com/swc-project/swc/commit/2cce1c82b2a72e69668c170e1b9a0bc78b2b4afd))
54
+
55
+
56
+ - **(css/modules)** Support `:local` and `:global` (#6045) ([10d0f8e](https://github.com/swc-project/swc/commit/10d0f8e0011fc9e02769cde49fcfd8f8730ca15e))
57
+
58
+
59
+ - **(css/modules)** Support `:global` in `@keyframes` (#6046) ([51e935e](https://github.com/swc-project/swc/commit/51e935eb4abd8911b2568f1598b20a9c0db7dbbf))
60
+
61
+
62
+ - **(es/compat)** Support iterator protocol on loose mode (#6034) ([80da098](https://github.com/swc-project/swc/commit/80da0981bd31e612d97d5c9fb10101891cabac90))
63
+
64
+
65
+ - **(es/minifier)** Drop vars from sequential inliner (#5993) ([286334c](https://github.com/swc-project/swc/commit/286334c4d0b15d92347c6e51e05a3c3bf506e982))
66
+
67
+
68
+ - **(es/minifier)** Inline function calls in more cases (#6010) ([61807ab](https://github.com/swc-project/swc/commit/61807abf6e482df5f34d24955c8fa56d6857659c))
69
+
70
+
71
+ - **(es/minifier)** Ignore return values of ignored IIFEs (#6020) ([2b62752](https://github.com/swc-project/swc/commit/2b627524acaeb555988a9537d84fe51033e7f8fd))
72
+
73
+
74
+ - **(es/minifier)** Clone trivial literals in sequential inliner (#6005) ([877936f](https://github.com/swc-project/swc/commit/877936f626882e7fe139a97e3d0ea53f93d56344))
75
+
76
+
77
+ - **(es/minifier)** Inline vars initialized before the declaration (#6027) ([c485099](https://github.com/swc-project/swc/commit/c4850997a292f9bc6c057b28e002d427db6587c8))
78
+
79
+
80
+ - **(html/codegen)** Add an option to keep quotes while minifying (#5996) ([35da762](https://github.com/swc-project/swc/commit/35da76241dd9e456a9124717cc8ddba82c97a2b2))
81
+
82
+ ### Miscellaneous Tasks
83
+
84
+
85
+
86
+ - **(ci)** Merge CI scripts (#5999) ([10fb645](https://github.com/swc-project/swc/commit/10fb645552131d48c99789b346e6c31ed3a969cb))
87
+
88
+
89
+ - **(ci)** Extract bot action to a separate repository (#6064) ([39481c6](https://github.com/swc-project/swc/commit/39481c622c288139ccd74fd2b3ba1bd65f4d9708))- **general**: Update `README.md` (#6007) ([185d6fe](https://github.com/swc-project/swc/commit/185d6fe98276d413a10159cac96adce1e2e4d549))
90
+
91
+ ### Performance
92
+
93
+
94
+
95
+ - **(common)** Split the mutex for the hygiene system (#6019) ([5ea2d81](https://github.com/swc-project/swc/commit/5ea2d81aa3cd7ce46d92582fc88e50676c54c202))
96
+
97
+ ### Testing
98
+
99
+
100
+
101
+ - **(es/minifier)** Organize terser tests (#6015) ([1aae503](https://github.com/swc-project/swc/commit/1aae503913da14134b758527fa5049a1e46352ef))
102
+
103
+ ### Build
104
+
105
+
106
+
107
+ - **(cargo)** Introduce workspace deps (#5997) ([af64217](https://github.com/swc-project/swc/commit/af64217f19107ba654c086470ba3a2d1379eebde))
108
+
109
+
110
+ - **(cargo)** Use workspace deps for internal pkg (#6001) ([3204ac3](https://github.com/swc-project/swc/commit/3204ac3e0c2d04d3e9269655ba3d4dddf3ae74af))
111
+
112
+
113
+ - **(cargo)** Dedup `indexmap` with known version (#6060) ([fff4b9c](https://github.com/swc-project/swc/commit/fff4b9ce6550b1db3c0b9086d199090e7211f609))
114
+
115
+ ## [1.3.4] - 2022-09-30
116
+
117
+ ### Bug Fixes
118
+
119
+
120
+
121
+ - **(es/codegen)** Align sourcemap with terser (#5657) ([2ba8815](https://github.com/swc-project/swc/commit/2ba88154fced01cb6ad0428207cf88ad7ddee75c))
122
+
123
+
124
+ - **(es/codegen)** Fix codegen of a negative number (#5980) ([bc2c0f4](https://github.com/swc-project/swc/commit/bc2c0f413396cc5ab436b1e87e5462f5c2475e4e))
125
+
126
+
127
+ - **(es/compat)** Fix the order of initialization for decorators on computed keys (#5964) ([e410102](https://github.com/swc-project/swc/commit/e41010263379fc9a7676925f089aa9913c8f0f04))
128
+
129
+
130
+ - **(es/compat)** Fix unrolling of arrays in `generator` (#5965) ([1f892cd](https://github.com/swc-project/swc/commit/1f892cd9798cadcbf7cbfa182e164a358410ee2e))
131
+
132
+
133
+ - **(es/minifier)** Fix skipping logic of sequential inliner (#5956) ([9d19742](https://github.com/swc-project/swc/commit/9d1974248dc5424ee20f7c315efadde4c696f720))
134
+
135
+
136
+ - **(es/minifier)** Fix analysis of parameters (#5954) ([33a15c8](https://github.com/swc-project/swc/commit/33a15c8d8275ea6c9d4101d7bc77ecba9f420924))
137
+
138
+
139
+ - **(es/minifier)** Fix analysis of nested function-like properties (#5963) ([0fb2c1d](https://github.com/swc-project/swc/commit/0fb2c1d5a539d656f337d0ef4c9392f01817986d))
140
+
141
+
142
+ - **(es/minifier)** Preserve exports in DCE (#5973) ([aff4ea5](https://github.com/swc-project/swc/commit/aff4ea5f4412c17c58288459a92a1d9b28ba58c4))
143
+
144
+
145
+ - **(es/minifier)** Don't panic on jsx or ts (#5984) ([0067f71](https://github.com/swc-project/swc/commit/0067f719dd0a072ef43e51698f159506287d7f35))
146
+
147
+
148
+ - **(es/minifier)** Remove print ([af8236d](https://github.com/swc-project/swc/commit/af8236d689e29980ef1bc8d7d05ed61e37649b28))
149
+
150
+
151
+ - **(es/minifier)** Remove wrong variable joiner pass (#5992) ([f8358fb](https://github.com/swc-project/swc/commit/f8358fbe2bf17de6a04870c58f58768d0966ec18))
152
+
153
+
154
+ - **(es/parser)** Allow `as` in destructuring assignment (#5948) ([cdd69d0](https://github.com/swc-project/swc/commit/cdd69d0145d22008448f394e8b39ba98291d87fe))
155
+
156
+
157
+ - **(es/resolver)** Use a separate mark for the name of `FnExpr` (#5959) ([573418f](https://github.com/swc-project/swc/commit/573418fc96edbf3f2c5e1a0c4e83a68b4c80b4e1))
158
+
159
+
160
+ - **(es/testing)** Remove cycle ([d0e2e3c](https://github.com/swc-project/swc/commit/d0e2e3c43b01c3e18b2b854213ebc8217f36c73b))
161
+
162
+ ### Features
163
+
164
+
165
+
166
+ - **(css/codegen)** Minify idents (#5972) ([b3a05a0](https://github.com/swc-project/swc/commit/b3a05a057ac39d0ceef60b4227f675a2a2c3556d))
167
+
168
+
169
+ - **(css/minifier)** Remove duplicate `@counter-style` at-rules (#5970) ([dfdad69](https://github.com/swc-project/swc/commit/dfdad69c03d13d8950e89358f6587f2bc66d5912))
170
+
171
+
172
+ - **(dbg-swc)** Add a size debugger for next.js (#5945) ([b219fa2](https://github.com/swc-project/swc/commit/b219fa2f015f39e1f3da17ade777a4bc92b6eabe))
173
+
174
+
175
+ - **(es/minifier)** Ignore more expressions in sequential inliner (#5961) ([dcd516d](https://github.com/swc-project/swc/commit/dcd516d2bd5e9fcdc11a96c014671958ddede1de))
176
+
177
+
178
+ - **(es/minifier)** Evaluate more literals in comparison (#5976) ([0e69890](https://github.com/swc-project/swc/commit/0e698907641bb74f90fa0fffd157c5fffe1298b6))
179
+
180
+
181
+ - **(es/minifier)** Ignore more return values (#5981) ([08f6e81](https://github.com/swc-project/swc/commit/08f6e81d8e9219e73ea8e312f213aa170ba7acc9))
182
+
183
+
184
+ - **(es/minifier)** Drop more variables while invoking IIFE (#5987) ([c411e5d](https://github.com/swc-project/swc/commit/c411e5d55292c83d73f821e3a1e285cf3584b668))
185
+
186
+
187
+ - **(es/minifier)** Improve fn-local analysis for better inlining (#5955) ([1a11cfd](https://github.com/swc-project/swc/commit/1a11cfd46fd8269934f33c1128e48a47d5de093e))
188
+
189
+
190
+ - **(es/minifier)** Invoke sequential inliner for inlined IIFEs (#5991) ([aeb7f30](https://github.com/swc-project/swc/commit/aeb7f300a814b6303c29eda6124cf4dd333f3936))
191
+
192
+ ### Miscellaneous Tasks
193
+
194
+
195
+
196
+ - **(ci)** Fix benchmark action (#5978) ([f7128d2](https://github.com/swc-project/swc/commit/f7128d20f08206a3d4e313af075a2cb28dfdc58b))
197
+
198
+
199
+ - **(es/transforms)** Setup parallel benchmark (#5974) ([8066d8f](https://github.com/swc-project/swc/commit/8066d8f60ece891a555a4c24d63feee85c27da92))
200
+
201
+
202
+ - **(html/minifier)** Typo (#5995) ([a716b40](https://github.com/swc-project/swc/commit/a716b40d05a57065e2f5dbaad5f6a17dceee7860))
203
+
204
+ ### Performance
205
+
206
+
207
+
208
+ - **(css/minifier)** Merge all passes (#5971) ([7d7c2d3](https://github.com/swc-project/swc/commit/7d7c2d3a9c75286a4d12d5f1d1b45501f170b512))
209
+
210
+
211
+ - **(es)** Don't share `Globals` (#5975) ([19131e1](https://github.com/swc-project/swc/commit/19131e168e65b13a4d4ddf823aec4211a2502ceb))
212
+
213
+
214
+ - **(es/minifier)** Optimize `MultiReplacer` (#5977) ([e37bb55](https://github.com/swc-project/swc/commit/e37bb551015b68b108569015a03dc00477f621ee))
215
+
216
+
217
+ - **(html/minifier)** Improve performance (#5983) ([6c08971](https://github.com/swc-project/swc/commit/6c08971a53b8ba87b920173539c1165640e7f2a3))
218
+
219
+ ### Testing
220
+
221
+
222
+
223
+ - **(es/minifier)** Categorize terser tests (#5960) ([48cddc1](https://github.com/swc-project/swc/commit/48cddc16f67ed5ac904a1e67a6ec096da5747cd2))
224
+
225
+
226
+ - **(es/minifier)** Remove mangle-only snapshots (#5979) ([8c4873f](https://github.com/swc-project/swc/commit/8c4873f81efce53356b2eccdcdc32d5df41a89b2))
227
+
228
+
229
+ - **(es/minifier)** Add tests for benchmark files (#5986) ([0cfc724](https://github.com/swc-project/swc/commit/0cfc724018374cef591694d5239c519aa97c1622))
230
+
231
+
232
+ - **(es/plugin)** Reenable compat test (#5969) ([ca38a70](https://github.com/swc-project/swc/commit/ca38a7027ead28ecb9723d7e99e9123af3c6af14))
233
+
234
+ ### Build
235
+
236
+
237
+
238
+ - **(rustc)** Update rustc (#5943) ([3c3529c](https://github.com/swc-project/swc/commit/3c3529cb84052dcde7976fed4d74d17d33317242))
239
+
240
+ ## [1.3.3] - 2022-09-23
241
+
242
+ ### Bug Fixes
243
+
244
+
245
+
8
246
  - **(cli)** Add missing comma (#5902) ([ccca6d0](https://github.com/swc-project/swc/commit/ccca6d0a8866b9e34e1778e176ed47d19e30be78))
9
247
 
10
248
 
package/README.md CHANGED
@@ -1,35 +1,36 @@
1
1
  <p align="center">
2
2
  <a href="https://swc.rs/">
3
- <img alt="babel" src="https://raw.githubusercontent.com/swc-project/logo/master/swc.png" width="546">
3
+ <img alt="swc" src="https://raw.githubusercontent.com/swc-project/logo/master/swc.png" width="546">
4
4
  </a>
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
- Make the web (development) faster.
8
+ Make the web (development) faster.
9
9
  </p>
10
10
 
11
11
  <p align="center">
12
- <a href="https://www.npmjs.com/package/@swc/core">
13
- <img alt="npm Downloads" src="https://img.shields.io/npm/dm/@swc/helpers">
14
- </a>
15
- <a href="https://crates.io/crates/swc_ecma_parser">
16
- <img alt="undefined" src="https://img.shields.io/crates/d/swc_ecma_parser.svg?label=crates.io%20downloads">
17
- </a>
12
+ <a href="https://www.npmjs.com/package/@swc/core">
13
+ <img alt="npm Downloads" src="https://img.shields.io/npm/dm/@swc/helpers">
14
+ </a>
15
+ <a href="https://crates.io/crates/swc_ecma_parser">
16
+ <img alt="undefined" src="https://img.shields.io/crates/d/swc_ecma_parser.svg?label=crates.io%20downloads">
17
+ </a>
18
+ <a href="https://github.com/swc-project/swc/releases/latest">
18
19
  <img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/swc-project/swc">
20
+ </a>
19
21
  </p>
20
22
 
21
23
  <p align="center">
22
- <img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/swc-project/swc">
23
- <a href="https://github.com/swc-project/swc/actions/workflows/cargo.yml">
24
- <img alt="CI Status" src="https://github.com/swc-project/swc/actions/workflows/cargo.yml/badge.svg?event=push">
25
- </a>
26
- <img alt="node-current (scoped)" src="https://img.shields.io/node/v/@swc/core">
24
+ <img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/swc-project/swc">
25
+ <a href="https://github.com/swc-project/swc/blob/main/package.json#L22">
26
+ <img alt="node-current (scoped)" src="https://img.shields.io/node/v/@swc/core">
27
+ </a>
27
28
  </p>
28
29
 
29
30
  <p align="center">
30
- <a href="https://discord.com/invite/GnHbXTdZz6">
31
- <img alt="Discord" src="https://img.shields.io/discord/889779439272075314">
32
- </a>
31
+ <a href="https://discord.com/invite/GnHbXTdZz6">
32
+ <img alt="Discord" src="https://img.shields.io/discord/889779439272075314">
33
+ </a>
33
34
  </p>
34
35
 
35
36
  SWC (stands for `Speedy Web Compiler`) is a super-fast TypeScript / JavaScript compiler written in Rust. It's a library for Rust and JavaScript at the same time. If you are using SWC from Rust, see [rustdoc](https://rustdoc.swc.rs/swc/) and for most users, your entry point for using the library will be [parser](https://rustdoc.swc.rs/swc_ecma_parser/).
@@ -61,24 +62,24 @@ Please see [benchmark results](https://swc.rs/docs/benchmark-transform) on the w
61
62
  <h2 align="center">Supporting swc</h2>
62
63
 
63
64
  <p align="center">
64
- <a href="#backers">
65
- <img alt="Backers on Open Collective" src="https://opencollective.com/swc/tiers/backer/badge.svg?label=backer&color=brightgreen" />
66
- </a>
67
- <a href="#gold-sponsors">
68
- <img alt="Gold sponsors on Open Collective" src="https://opencollective.com/swc/tiers/gold-sponsors/badge.svg?label=Gold%20sponsors&color=brightgreen"/>
69
- </a>
70
- <a href="#silver-sponsors">
71
- <img alt="Silver sponsors on Open Collective" src="https://opencollective.com/swc/tiers/silver-sponsors/badge.svg?label=Silver%20sponsors&color=brightgreen"/>
72
- </a>
73
- <a href="#bronze-sponsors">
74
- <img alt="Bronze sponsors on Open Collective" src="https://opencollective.com/swc/tiers/bronze-sponsors/badge.svg?label=Bronze%20sponsors&color=brightgreen"/>
75
- </a>
65
+ <a href="#backers">
66
+ <img alt="Backers on Open Collective" src="https://opencollective.com/swc/tiers/backer/badge.svg?label=backer&color=brightgreen" />
67
+ </a>
68
+ <a href="#gold-sponsors">
69
+ <img alt="Gold sponsors on Open Collective" src="https://opencollective.com/swc/tiers/gold-sponsors/badge.svg?label=Gold%20sponsors&color=brightgreen"/>
70
+ </a>
71
+ <a href="#silver-sponsors">
72
+ <img alt="Silver sponsors on Open Collective" src="https://opencollective.com/swc/tiers/silver-sponsors/badge.svg?label=Silver%20sponsors&color=brightgreen"/>
73
+ </a>
74
+ <a href="#bronze-sponsors">
75
+ <img alt="Bronze sponsors on Open Collective" src="https://opencollective.com/swc/tiers/bronze-sponsors/badge.svg?label=Bronze%20sponsors&color=brightgreen"/>
76
+ </a>
76
77
  </p>
77
78
 
78
79
  SWC is a community-driven project, and is maintained by a group of [volunteers](https://opencollective.com/swc#team). If you'd like to help support the future of the project, please consider:
79
80
 
80
- - Giving developer time on the project. (Message us on [Discord](https://discord.gg/GnHbXTdZz6) (preferred) or [Github discussions](https://github.com/swc-project/swc/discussions) for guidance!)
81
- - Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
81
+ - Giving developer time on the project. (Message us on [Discord](https://discord.gg/GnHbXTdZz6) (preferred) or [Github discussions](https://github.com/swc-project/swc/discussions) for guidance!)
82
+ - Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
82
83
 
83
84
  ## Contributing
84
85
 
@@ -87,11 +88,6 @@ documentation useful ([ARCHITECTURE.md](ARCHITECTURE.md)).
87
88
 
88
89
  ## License
89
90
 
90
- SWC is primarily distributed under the terms of both the MIT license
91
- and the Apache License (Version 2.0).
92
-
93
- See LICENSE-APACHE and LICENSE-MIT for details.
91
+ SWC is primarily distributed under the terms of the Apache License (Version 2.0).
94
92
 
95
- [babel]: https://github.com/babel/babel
96
- [closure compiler]: https://github.com/google/closure-compiler
97
- [rust]: https://www.rust-lang.org
93
+ See [LICENSE](LICENSE) for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -89,6 +89,7 @@
89
89
  "devDependencies": {
90
90
  "@babel/compat-data": "^7.17.0",
91
91
  "@babel/core": "^7.13.16",
92
+ "@babel/generator": "^7.18.13",
92
93
  "@babel/plugin-proposal-class-properties": "^7.13.0",
93
94
  "@babel/plugin-proposal-decorators": "^7.13.15",
94
95
  "@babel/plugin-proposal-object-rest-spread": "^7.13.8",
@@ -143,19 +144,19 @@
143
144
  "url": "https://opencollective.com/swc"
144
145
  },
145
146
  "optionalDependencies": {
146
- "@swc/core-win32-x64-msvc": "1.3.3",
147
- "@swc/core-darwin-x64": "1.3.3",
148
- "@swc/core-linux-x64-gnu": "1.3.3",
149
- "@swc/core-linux-x64-musl": "1.3.3",
150
- "@swc/core-freebsd-x64": "1.3.3",
151
- "@swc/core-win32-ia32-msvc": "1.3.3",
152
- "@swc/core-linux-arm64-gnu": "1.3.3",
153
- "@swc/core-linux-arm-gnueabihf": "1.3.3",
154
- "@swc/core-darwin-arm64": "1.3.3",
155
- "@swc/core-android-arm64": "1.3.3",
156
- "@swc/core-linux-arm64-musl": "1.3.3",
157
- "@swc/core-win32-arm64-msvc": "1.3.3",
158
- "@swc/core-android-arm-eabi": "1.3.3"
147
+ "@swc/core-win32-x64-msvc": "1.3.5",
148
+ "@swc/core-darwin-x64": "1.3.5",
149
+ "@swc/core-linux-x64-gnu": "1.3.5",
150
+ "@swc/core-linux-x64-musl": "1.3.5",
151
+ "@swc/core-freebsd-x64": "1.3.5",
152
+ "@swc/core-win32-ia32-msvc": "1.3.5",
153
+ "@swc/core-linux-arm64-gnu": "1.3.5",
154
+ "@swc/core-linux-arm-gnueabihf": "1.3.5",
155
+ "@swc/core-darwin-arm64": "1.3.5",
156
+ "@swc/core-android-arm64": "1.3.5",
157
+ "@swc/core-linux-arm64-musl": "1.3.5",
158
+ "@swc/core-win32-arm64-msvc": "1.3.5",
159
+ "@swc/core-android-arm-eabi": "1.3.5"
159
160
  },
160
161
  "files": [
161
162
  "CHANGELOG.md",
package/types.d.ts CHANGED
@@ -203,9 +203,9 @@ export interface TerserCompressOptions {
203
203
  }
204
204
  export interface TerserMangleOptions {
205
205
  props?: TerserManglePropertiesOptions;
206
- top_level?: boolean;
207
- keep_class_names?: boolean;
208
- keep_fn_names?: boolean;
206
+ toplevel?: boolean;
207
+ keep_classnames?: boolean;
208
+ keep_fnames?: boolean;
209
209
  keep_private_props?: boolean;
210
210
  ie8?: boolean;
211
211
  safari10?: boolean;
@@ -667,7 +667,7 @@ export interface GlobalPassOption {
667
667
  */
668
668
  envs?: string[];
669
669
  }
670
- export declare type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig;
670
+ export declare type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig | SystemjsConfig;
671
671
  export interface BaseModuleConfig {
672
672
  /**
673
673
  * By default, when using exports with babel a non-enumerable `__esModule`
@@ -825,6 +825,8 @@ export interface BaseModuleConfig {
825
825
  * If set to true, dynamic imports will be preserved.
826
826
  */
827
827
  ignoreDynamic?: boolean;
828
+ allowTopLevelThis?: boolean;
829
+ preserveImportMeta?: boolean;
828
830
  }
829
831
  export interface Es6Config extends BaseModuleConfig {
830
832
  type: "es6";
@@ -845,6 +847,10 @@ export interface AmdConfig extends BaseModuleConfig {
845
847
  type: "amd";
846
848
  moduleId?: string;
847
849
  }
850
+ export interface SystemjsConfig {
851
+ type: "systemjs";
852
+ allowTopLevelThis?: boolean;
853
+ }
848
854
  export interface Output {
849
855
  /**
850
856
  * Transformed code