@swc/core 1.2.163 → 1.2.167

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/CHANGELOG.md CHANGED
@@ -5,6 +5,275 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/parser)** Reject optional constructor call (#4340) ([31b3336](https://github.com/swc-project/swc/commit/31b3336cd5881ff8f99d791254ee02ff4fa23fcc))
9
+
10
+ ### Miscellaneous Tasks
11
+
12
+
13
+
14
+ - **(ci)** Fix wasm publish script ([1900d35](https://github.com/swc-project/swc/commit/1900d3506efb8bc319dece4219789e2509ecf67c))
15
+
16
+ ### Performance
17
+
18
+
19
+
20
+ - **(es/minifier)** Make name mangler faster (#4342) ([66ff7b8](https://github.com/swc-project/swc/commit/66ff7b8a09bc504d3912d12b4a8ebea3a96d4e4b))
21
+
22
+ ## [1.2.166] - 2022-04-15
23
+
24
+ ### Bug Fixes
25
+
26
+
27
+
28
+ - **(css/parser)** Parse legacy `calc`s (#4320) ([81370d1](https://github.com/swc-project/swc/commit/81370d16cb405d43aeb9198e1fce4aa11009045f))
29
+
30
+
31
+ - **(css/prefixer)** Don't prefix if it's already prefixed (#4307) ([690ce26](https://github.com/swc-project/swc/commit/690ce2628c988a3d1823cbcf4f786203e548cb84))
32
+
33
+
34
+ - **(css/prefixer)** Handle at-rules and don't generate unnecessary prefixes (#4318) ([ac4f14a](https://github.com/swc-project/swc/commit/ac4f14ad7b70e67c41507cafd997f6b4e346e815))
35
+
36
+
37
+ - **(css/prefixer)** Fix more bugs (#4330) ([405e5ed](https://github.com/swc-project/swc/commit/405e5ed0b3bbcf8076c80d1383588bfee1cf8d22))
38
+
39
+
40
+ - **(es/codegen)** Fix overflow of numeric literals (#4321) ([0245e26](https://github.com/swc-project/swc/commit/0245e26af5f984cf89a2f474d89f6b3dfe2f0eff))
41
+
42
+
43
+ - **(es/codegen)** Fix codegen of arrow expressions (#4306) ([4c99730](https://github.com/swc-project/swc/commit/4c9973010a5c2b865e6ed676a4e0364234cf5d88))
44
+
45
+
46
+ - **(es/compat)** Fix renaming bug of `block_scoping` (#4310) ([6c9882e](https://github.com/swc-project/swc/commit/6c9882ec68fee9b702f5e4749482eca74fbd87e8))
47
+
48
+
49
+ - **(es/lints)** Check parameters in the duplicate binding rule (#4288) ([e4a565c](https://github.com/swc-project/swc/commit/e4a565c2d4c90dc23267b44e8f4aee2e0cc79c23))
50
+
51
+
52
+ - **(es/loader)** Fix traversal of node modules resolver (#4327) ([780de70](https://github.com/swc-project/swc/commit/780de7095e1ea6b71204017f708f8370ed4531a8))
53
+
54
+
55
+ - **(es/minifier)** Fix inlining of uninitialized variables (#4292) ([b990b19](https://github.com/swc-project/swc/commit/b990b19ed130ce1dc57f76b883bf638ace64c4f4))
56
+
57
+
58
+ - **(es/minifier)** Respect `dead_code` (#4328) ([8886a4b](https://github.com/swc-project/swc/commit/8886a4b572c4b24091aa3db38fdc7b486334c069))
59
+
60
+
61
+ - **(es/minifier)** Inline before cloning (#4338) ([4110fcb](https://github.com/swc-project/swc/commit/4110fcb9612ceeba0c52f539896075a571c9a619))
62
+
63
+
64
+ - **(es/parser)** Enable static blocks by default (#4334) ([7599fe7](https://github.com/swc-project/swc/commit/7599fe74317f790cce8f8638e84c320c5ebbc4c2))
65
+
66
+
67
+ - **(es/parser)** Make parsing of TS InstantiationExpr more permissive (#4332) ([ea466af](https://github.com/swc-project/swc/commit/ea466afdc8dc6b64be81244a8c0261ac34f22157))
68
+
69
+
70
+ - **(node-swc/types)** Add `isTypeOnly` to types (#4303) ([1a48732](https://github.com/swc-project/swc/commit/1a48732e78b9c650f93320f4d6f7be57a9f4a6c4))
71
+
72
+ ### Features
73
+
74
+
75
+
76
+ - **(css/minifier)** Compress colors (#4308) ([65b18ee](https://github.com/swc-project/swc/commit/65b18ee602506d455ce10c6ca2bd599d57d29d14))
77
+
78
+
79
+ - **(es)** Support `typeof` with private fields (#4302) ([d0de5a6](https://github.com/swc-project/swc/commit/d0de5a63a01ef45101cdd10f90546ec7950ce7ac))
80
+
81
+
82
+ - **(es/minifier)** Enable `conditionals` by default (#4301) ([7e8f613](https://github.com/swc-project/swc/commit/7e8f6132729ca3ddf7884f1b246964921cde1c35))
83
+
84
+
85
+ - **(es/minifier)** Enable `dead_code` by default (#4309) ([74a5087](https://github.com/swc-project/swc/commit/74a5087989173f833517cb6f6bf51afcf9642286))
86
+
87
+
88
+ - **(es/minifier)** Improve sequential inliner (#4335) ([f92242d](https://github.com/swc-project/swc/commit/f92242dcb17a7b6dc25dac63d052df9e3d7042bc))
89
+
90
+
91
+ - **(es/parser)** Support `extends` clause to `infer` type (#4326) ([1c3d1af](https://github.com/swc-project/swc/commit/1c3d1af01cdfdf6794e73e32bb0062698d4910be))
92
+
93
+ ### Miscellaneous Tasks
94
+
95
+
96
+
97
+ - **(*)** Typo + fomatting (#4304) ([37a8c90](https://github.com/swc-project/swc/commit/37a8c90750d778edcd69ffdd85fe990a27efc75d))
98
+
99
+
100
+ - **(ci)** Fix CI (#4299) ([adea17d](https://github.com/swc-project/swc/commit/adea17dbe3b17e397d79a7dae1f469bf38f0185f))
101
+
102
+
103
+ - **(es/minifier)** Update terser test references (#4297) ([df0d572](https://github.com/swc-project/swc/commit/df0d572b4ff250be037ca9a04b6bcd95329f9f3b))
104
+
105
+
106
+ - **(es/minifier)** Add full benchmark for `.minify()` (#4341) ([ba5f743](https://github.com/swc-project/swc/commit/ba5f7436c18b7e3845bc2935aca6cdb76477b686))
107
+
108
+ ### Refactor
109
+
110
+
111
+
112
+ - **(bindings)** Rename crates (#4337) ([83a8f48](https://github.com/swc-project/swc/commit/83a8f489ec5b7010a762a75dc31a63b2fb060372))
113
+
114
+
115
+ - **(es/minifier)** Clean up logging (#4322) ([2002554](https://github.com/swc-project/swc/commit/2002554fa26c1ebd683f71d87263f26fd95d00f1))
116
+
117
+
118
+ - **(es/parser)** Simplify logic (#4329) ([37aec5b](https://github.com/swc-project/swc/commit/37aec5b19965bedbe67fa1b454be6a7017ccedec))
119
+
120
+ ## [1.2.165] - 2022-04-09
121
+
122
+ ### Bug Fixes
123
+
124
+
125
+
126
+ - **(css/prefixer)** FIx a bug related to `writing-mode` (#4278) ([7f38e06](https://github.com/swc-project/swc/commit/7f38e06e0209216200182555c7c7ddb11499e45d))
127
+
128
+
129
+ - **(es/minifier)** Fix handling of `eval` (#4273) ([c961371](https://github.com/swc-project/swc/commit/c961371c312f85553ab17eb1b67f0721861bcbf5))
130
+
131
+
132
+ - **(es/module)** Support top-level await in dynamic imports (#4277) ([720244f](https://github.com/swc-project/swc/commit/720244fff9f3fcf5cb0ed4bcfc6e2a5795ad3be1))
133
+
134
+
135
+ - **(es/optimization)** Don't create invalid sequence expressions (#4285) ([4868c73](https://github.com/swc-project/swc/commit/4868c73d5bc5eb3ffbbc2fd31c485e3e22795550))
136
+
137
+ ### Features
138
+
139
+
140
+
141
+ - **(html)** Add raw fields (#4281) ([ee108af](https://github.com/swc-project/swc/commit/ee108af3d0bf81cfa101d8b52ee4d072705b04f4))
142
+
143
+
144
+ - **(plugin)** Implement `Copy` and `Clone` for the comment proxy (#4280) ([3c4e520](https://github.com/swc-project/swc/commit/3c4e5204ecb51dd67c73ae5556c886b303891a23))
145
+
146
+
147
+ - **(plugin)** Make more types serializable (#4289) ([281db2c](https://github.com/swc-project/swc/commit/281db2cc4f9af29577095038b37af5855a1e5aa5))
148
+
149
+
150
+ - **(plugin/runner)** Allow fs access from wasi plugin (#4279) ([fc3a2d0](https://github.com/swc-project/swc/commit/fc3a2d0cf9a4767076dda3fac929b24a50144730))
151
+
152
+ ### Miscellaneous Tasks
153
+
154
+
155
+
156
+ - **(plugin)** Align version of `swc_common` to include dummy comment api (#4270) ([fad652f](https://github.com/swc-project/swc/commit/fad652f879d12a1015b4500f0a512232c9433c2d))
157
+
158
+ ### Refactor
159
+
160
+
161
+
162
+ - **(es/minifier)** Merge code for multi-replacer (#4269) ([434dcf4](https://github.com/swc-project/swc/commit/434dcf4af786a7d31827f7b078dea40efc35b64f))
163
+
164
+
165
+ - **(plugin/api)** Expand the proxy crate (#4290) ([cf7ca50](https://github.com/swc-project/swc/commit/cf7ca5076a7f0b33f3587fb34f2eddcb2d316e5d))
166
+
167
+ ## [1.2.164] - 2022-04-07
168
+
169
+ ### Bug Fixes
170
+
171
+
172
+
173
+ - **(es/codegen)** Commit `;` before a template literal (#4252) ([8cd903b](https://github.com/swc-project/swc/commit/8cd903b3b006b823cc5d3a61d40a1311fc97276c))
174
+
175
+
176
+ - **(es/codegen)** Handle comments on the argument of `throw` (#4254) ([ccd3188](https://github.com/swc-project/swc/commit/ccd3188c8bbf9d80efaa632e283941ed6e1fc59c))
177
+
178
+
179
+ - **(es/minifier)** Remap variables on IIFE evaluation (#4230) ([55b98fc](https://github.com/swc-project/swc/commit/55b98fc87470cc5b2e2645ae8588c106c490fb3a))
180
+
181
+
182
+ - **(es/minifier)** Handle empty RegExp (#4235) ([6a51d04](https://github.com/swc-project/swc/commit/6a51d0471a53cfdd48c8426c9cdc5bfddf200b35))
183
+
184
+
185
+ - **(es/minifier)** Fix infinite loops (#4250) ([350a195](https://github.com/swc-project/swc/commit/350a19587e2220a134d9049b7afb19e35da236f0))
186
+
187
+
188
+ - **(es/optimizer/simplifier)** Collect idents in init first (#4239) ([b1645f6](https://github.com/swc-project/swc/commit/b1645f606d1334eadb7ebf912c847bb5bdff6b96))
189
+
190
+
191
+ - **(es/parser)** Support error reporting for TS1274 (#4232) ([6d380ea](https://github.com/swc-project/swc/commit/6d380ea6faf1bde18c6f92c87ed0395c674a1ead))
192
+
193
+
194
+ - **(es/parser)** Adjust context in a function block (#4264) ([b89937c](https://github.com/swc-project/swc/commit/b89937c3c081132e3cf126467476080f29272cdd))
195
+
196
+
197
+ - **(html/parser)** Support cdata (#4259) ([3f6037b](https://github.com/swc-project/swc/commit/3f6037b467a378357051a7de6002e34d36b640d4))
198
+
199
+
200
+ - **(html/parser)** Fix bugs (#4265) ([105a0cc](https://github.com/swc-project/swc/commit/105a0cccf7dec630824e2e0f8ee77bf31645aa28))
201
+
202
+ ### Features
203
+
204
+
205
+
206
+ - **(css/parser)** Improve error recovery for unknown at-rules (#4257) ([8b6647c](https://github.com/swc-project/swc/commit/8b6647cf8571fabb820d0a5dae7a3b69e561202d))
207
+
208
+
209
+ - **(es)** Support jsonc for `.swcrc` (#4236) ([8008b79](https://github.com/swc-project/swc/commit/8008b79f8c69f9abc1cdd7be299f5580be8c3c0f))
210
+
211
+
212
+ - **(es/ast)** Add `raw` to `Num` (#4245) ([f39d3ac](https://github.com/swc-project/swc/commit/f39d3aca4db25db2880f447fe738375ad5307c86))
213
+
214
+
215
+ - **(es/minifier)** Improve sequential inlining (#4231) ([fe358ad](https://github.com/swc-project/swc/commit/fe358ad0b93d6f3bd2150fc9ce888f798875beed))
216
+
217
+
218
+ - **(es/minifier)** Improve inliner and evaluator (#4216) ([4701da5](https://github.com/swc-project/swc/commit/4701da576f0b12b656cf1baa57174a787b590742))
219
+
220
+
221
+ - **(es/minifier)** Exclude local bindings from aliases (#4261) ([ab1f440](https://github.com/swc-project/swc/commit/ab1f4401037803ae230148f9e189b1835b92dcd9))
222
+
223
+
224
+ - **(es/minifier)** Implement more rules for `hoist_props` (#4262) ([1f5cac4](https://github.com/swc-project/swc/commit/1f5cac4d413bc8d035e137d74470469dfd886fa3))
225
+
226
+
227
+ - **(es/parser)** Report more errors (#4244) ([674275c](https://github.com/swc-project/swc/commit/674275c8242df111bb9391da13b9869d7e6b6405))
228
+
229
+
230
+ - **(html)** Initialize (#4240) ([3e7872c](https://github.com/swc-project/swc/commit/3e7872c8de05ac46ef6ffb99f778ef5b64e47f1b))
231
+
232
+
233
+ - **(html)** Support boolean attributes (#4258) ([8640c8b](https://github.com/swc-project/swc/commit/8640c8bd43a164eb185733b5294342ff01c858f6))
234
+
235
+
236
+ - **(plugin)** Implement proxy for `dummy_with_cmt` (#4268) ([b15e984](https://github.com/swc-project/swc/commit/b15e984317ae6eb03597e9236f637fee205dd8a5))
237
+
238
+
239
+ - **(plugin/api)** Expose `swc_ecma_utils` (#4256) ([7bc04a6](https://github.com/swc-project/swc/commit/7bc04a67918374b1b2d02ed5034330cd6dd78d57))
240
+
241
+ ### Miscellaneous Tasks
242
+
243
+
244
+
245
+ - **(bench)** Migrate to criterion (#4237) ([06d0891](https://github.com/swc-project/swc/commit/06d0891e7cae751dfc62ac4607675e872ac12304))
246
+
247
+
248
+ - **(build)** Dedup `swc_common` (#4247) ([4093814](https://github.com/swc-project/swc/commit/4093814895a4c473d13852d2edeee17d06d7421f))
249
+
250
+
251
+ - **(ci)** Fix benchmark action (#4242) ([1f466e1](https://github.com/swc-project/swc/commit/1f466e1d2f10193b45c09ced2b6384d85ea8f333))
252
+
253
+
254
+ - **(es/preset-env)** Typo (#4243) ([06020bb](https://github.com/swc-project/swc/commit/06020bb76d5009f693cc702a70ac3add1ef0fe4a))
255
+
256
+ ### Refactor
257
+
258
+
259
+
260
+ - **(plugin)** Consolidate exported namespaces (#4263) ([8706c17](https://github.com/swc-project/swc/commit/8706c17c4f20fb508e685cb81945cd51672eaba5))
261
+
262
+ ### Testing
263
+
264
+
265
+
266
+ - **(es)** Organize tests (#4251) ([c32f42b](https://github.com/swc-project/swc/commit/c32f42b374a4964e858d05106eaa1b8fcd446cad))
267
+
268
+
269
+ - **(es/parser)** Add a test for a fixed issue (#4255) ([1f0039f](https://github.com/swc-project/swc/commit/1f0039f2c31778acf01a10807ca54be6d3ebac08))
270
+
271
+ ## [1.2.163] - 2022-04-03
272
+
273
+ ### Bug Fixes
274
+
275
+
276
+
8
277
  - **(cli)** Update plugin template (#4222) ([69cb512](https://github.com/swc-project/swc/commit/69cb512e571de1f8b245fdc538cf9a09c51823f2))
9
278
 
10
279
 
package/Visitor.d.ts CHANGED
@@ -107,7 +107,7 @@ export declare class Visitor {
107
107
  visitExpression(n: Expression): Expression;
108
108
  visitOptionalChainingExpression(n: OptionalChainingExpression): Expression;
109
109
  visitAssignmentExpression(n: AssignmentExpression): Expression;
110
- visitPatternOrExpressison(n: Pattern | Expression): Pattern | Expression;
110
+ visitPatternOrExpression(n: Pattern | Expression): Pattern | Expression;
111
111
  visitYieldExpression(n: YieldExpression): Expression;
112
112
  visitUpdateExpression(n: UpdateExpression): Expression;
113
113
  visitUnaryExpression(n: UnaryExpression): Expression;
package/Visitor.js CHANGED
@@ -773,11 +773,11 @@ class Visitor {
773
773
  return n;
774
774
  }
775
775
  visitAssignmentExpression(n) {
776
- n.left = this.visitPatternOrExpressison(n.left);
776
+ n.left = this.visitPatternOrExpression(n.left);
777
777
  n.right = this.visitExpression(n.right);
778
778
  return n;
779
779
  }
780
- visitPatternOrExpressison(n) {
780
+ visitPatternOrExpression(n) {
781
781
  switch (n.type) {
782
782
  case "ObjectPattern":
783
783
  case "ArrayPattern":
package/index.d.ts CHANGED
@@ -97,7 +97,7 @@ export declare function __experimental_registerGlobalTraceConfig(traceConfig: {
97
97
  *
98
98
  * Returns current binary's metadata to determine which binary is actually loaded.
99
99
  *
100
- * This is undocumented interface, does not gaurantee stability across `@swc/core`'s semver
100
+ * This is undocumented interface, does not guarantee stability across `@swc/core`'s semver
101
101
  * as internal representation may change anytime. Use it with caution.
102
102
  */
103
103
  export declare function getBinaryMetadata(): {
package/index.js CHANGED
@@ -268,7 +268,7 @@ exports.__experimental_registerGlobalTraceConfig = __experimental_registerGlobal
268
268
  *
269
269
  * Returns current binary's metadata to determine which binary is actually loaded.
270
270
  *
271
- * This is undocumented interface, does not gaurantee stability across `@swc/core`'s semver
271
+ * This is undocumented interface, does not guarantee stability across `@swc/core`'s semver
272
272
  * as internal representation may change anytime. Use it with caution.
273
273
  */
274
274
  function getBinaryMetadata() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.163",
3
+ "version": "1.2.167",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -59,8 +59,8 @@
59
59
  "pack": "wasm-pack",
60
60
  "build:ts": "tsc -d",
61
61
  "build:wasm": "npm-run-all \"pack -- build ./crates/wasm --scope swc {1} -t {2} --features plugin\" --",
62
- "build": "tsc -d && napi build --platform --cargo-name node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -p node --release",
63
- "build:dev": "tsc -d && napi build --platform --cargo-name node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -p node",
62
+ "build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -p binding_core_node --release",
63
+ "build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -p binding_core_node",
64
64
  "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest node-swc/__tests__",
65
65
  "version": "napi version -p scripts/npm"
66
66
  },
@@ -121,18 +121,18 @@
121
121
  "url": "https://opencollective.com/swc"
122
122
  },
123
123
  "optionalDependencies": {
124
- "@swc/core-win32-x64-msvc": "1.2.163",
125
- "@swc/core-darwin-x64": "1.2.163",
126
- "@swc/core-linux-x64-gnu": "1.2.163",
127
- "@swc/core-linux-x64-musl": "1.2.163",
128
- "@swc/core-freebsd-x64": "1.2.163",
129
- "@swc/core-win32-ia32-msvc": "1.2.163",
130
- "@swc/core-linux-arm64-gnu": "1.2.163",
131
- "@swc/core-linux-arm-gnueabihf": "1.2.163",
132
- "@swc/core-darwin-arm64": "1.2.163",
133
- "@swc/core-android-arm64": "1.2.163",
134
- "@swc/core-linux-arm64-musl": "1.2.163",
135
- "@swc/core-win32-arm64-msvc": "1.2.163",
136
- "@swc/core-android-arm-eabi": "1.2.163"
124
+ "@swc/core-win32-x64-msvc": "1.2.167",
125
+ "@swc/core-darwin-x64": "1.2.167",
126
+ "@swc/core-linux-x64-gnu": "1.2.167",
127
+ "@swc/core-linux-x64-musl": "1.2.167",
128
+ "@swc/core-freebsd-x64": "1.2.167",
129
+ "@swc/core-win32-ia32-msvc": "1.2.167",
130
+ "@swc/core-linux-arm64-gnu": "1.2.167",
131
+ "@swc/core-linux-arm-gnueabihf": "1.2.167",
132
+ "@swc/core-darwin-arm64": "1.2.167",
133
+ "@swc/core-android-arm64": "1.2.167",
134
+ "@swc/core-linux-arm64-musl": "1.2.167",
135
+ "@swc/core-win32-arm64-msvc": "1.2.167",
136
+ "@swc/core-android-arm-eabi": "1.2.167"
137
137
  }
138
138
  }
package/types.d.ts CHANGED
@@ -140,7 +140,7 @@ export interface Options extends Config {
140
140
  *
141
141
  * "root" - Passes the "root" value through as unchanged.
142
142
  * "upward" - Walks upward from the "root" directory, looking for a directory
143
- * containinga swc.config.js file, and throws an error if a swc.config.js
143
+ * containing a swc.config.js file, and throws an error if a swc.config.js
144
144
  * is not found.
145
145
  * "upward-optional" - Walk upward from the "root" directory, looking for
146
146
  * a directory containing a swc.config.js file, and falls back to "root"
@@ -198,7 +198,7 @@ export interface Options extends Config {
198
198
  * a package that matches one of the "swcrcRoots" packages.
199
199
  *
200
200
  *
201
- * Defaults to true as long as the filename option has been specificed
201
+ * Defaults to true as long as the filename option has been specified
202
202
  */
203
203
  swcrc?: boolean;
204
204
  /**
@@ -258,11 +258,11 @@ export declare type Swcrc = Config | Config[];
258
258
  */
259
259
  export interface Config {
260
260
  /**
261
- * Note: The type is string because it follow rust's regex syntax.
261
+ * Note: The type is string because it follows rust's regex syntax.
262
262
  */
263
263
  test?: string | string[];
264
264
  /**
265
- * Note: The type is string because it follow rust's regex syntax.
265
+ * Note: The type is string because it follows rust's regex syntax.
266
266
  */
267
267
  exclude?: string | string[];
268
268
  env?: EnvConfig;
@@ -303,7 +303,7 @@ export interface EnvConfig {
303
303
  path?: string;
304
304
  shippedProposals?: boolean;
305
305
  /**
306
- * Enable all trnasforms
306
+ * Enable all transforms
307
307
  */
308
308
  forceAllTransforms?: boolean;
309
309
  }
@@ -319,7 +319,7 @@ export interface JscConfig {
319
319
  */
320
320
  externalHelpers?: boolean;
321
321
  /**
322
- * Defaults to `es3` (which enableds **all** pass).
322
+ * Defaults to `es3` (which enabled **all** pass).
323
323
  */
324
324
  target?: JscTarget;
325
325
  /**
@@ -330,7 +330,7 @@ export interface JscConfig {
330
330
  optimizeHygiene?: boolean;
331
331
  keepImportAssertions?: boolean;
332
332
  /**
333
- * Specify the location where SWC stores its intermidiate cache files.
333
+ * Specify the location where SWC stores its intermediate cache files.
334
334
  * Currently only transform plugin uses this. If not specified, SWC will
335
335
  * create `.swc` directories.
336
336
  */
@@ -1061,6 +1061,7 @@ export interface NamedImportSpecifier extends Node, HasSpan {
1061
1061
  type: "ImportSpecifier";
1062
1062
  local: Identifier;
1063
1063
  imported: Identifier | null;
1064
+ isTypeOnly?: boolean;
1064
1065
  }
1065
1066
  export declare type ExportSpecifier = ExportNamespaceSpecifier | ExportDefaultSpecifier | NamedExportSpecifier;
1066
1067
  /**
@@ -1081,6 +1082,7 @@ export interface NamedExportSpecifier extends Node, HasSpan {
1081
1082
  * `Some(bar)` in `export { foo as bar }`
1082
1083
  */
1083
1084
  exported: Identifier | null;
1085
+ isTypeOnly?: boolean;
1084
1086
  }
1085
1087
  interface HasInterpreter {
1086
1088
  /**