Commit Graph

7996 Commits

Author SHA1 Message Date
magic-akari
8af6ffb1dd
fix(es/parser): Wrap with OptChain across TsNonNull (#8332)
**Related issue:**

- Closes #8326.
2023-11-23 08:23:30 +09:00
강동윤 (Donny)
7fd59b214e chore: Remove node_modules 2023-11-23 08:03:29 +09:00
SWC Bot
185289775f chore: Publish crates 2023-11-22 06:22:12 +00:00
Zak
91ef7c9415
fix(es/decorators): Resolve enum for design:returntype (#8320) 2023-11-22 06:20:11 +00:00
SWC Bot
c9c3e7d189 chore: Publish 1.3.100-nightly-20231122.1 2023-11-22 00:07:18 +00:00
SWC Bot
97d57f0e4f chore: Publish crates 2023-11-21 09:21:47 +00:00
David Sherret
c25601dec2
fix(es/typescript): Handle shebang with jsx pragma (#8318)
**Description:**

This handles a shebang with a jsx prag. Previously `h` would be removed as an import in this case.

**Related issue:**

https://github.com/denoland/deno/issues/21258
2023-11-21 09:19:40 +00:00
강동윤 (Donny)
85350d31ae chore: Publish v1.3.99 with swc_core v0.86.73 2023-11-21 11:50:59 +09:00
강동윤 (Donny)
8ac47a370e chore: Fix publish action 2023-11-21 11:50:27 +09:00
강동윤 (Donny)
23fdaf13f8 chore: Publish crates 2023-11-21 10:23:28 +09:00
Donny/강동윤
99ad5022d1
chore: Publish v1.3.98 with swc_core v0.86.73 (#8321) 2023-11-21 10:21:44 +09:00
SWC Bot
e23adc81c9 chore: Publish 1.3.98-nightly-20231121.1 2023-11-21 00:07:29 +00:00
SWC Bot
7cec0ac1a0 chore: Publish crates 2023-11-20 22:51:17 +00:00
Zzzen
51042e090d
fix(es/parsing): Fix parsing of type satisfies = 0; (#8305)
**Related issue:**

 - Closes #8121
2023-11-20 22:49:15 +00:00
SWC Bot
a8bd170634 chore: Publish crates 2023-11-20 22:19:11 +00:00
Donny/강동윤
7dfdc12218
fix(es/module): Read link if an import is resolved as symlink (#8297)
**Related issue:**

 - Closes #8265
2023-11-21 07:17:05 +09:00
SWC Bot
38c489c26c chore: Publish crates 2023-11-20 21:59:52 +00:00
magic-akari
feb8a6dad9
fix(es/parser): Report error for exported reserved name (#8313)
**Related issue:**

- Closes #8268.
2023-11-20 21:57:51 +00:00
SWC Bot
0744dbddc5 chore: Publish crates 2023-11-20 19:57:49 +00:00
Donny/강동윤
aac11e712b
chore(ci): Fix CI issue due to yarn (#8319) 2023-11-20 17:57:16 +00:00
강동윤 (Donny)
e9fa6e90c8 chore: Publish crates 2023-11-21 02:28:23 +09:00
SWC Bot
5fa2ed4bfd chore: Publish crates 2023-11-20 06:22:03 +00:00
magic-akari
00b88399a0
fix(es/parser): Fix parsing of import type from from (#8309)
**Related issue:**

- Closes #8308.
2023-11-20 06:20:06 +00:00
SWC Bot
af8c1d33f5 chore: Publish crates 2023-11-20 04:30:06 +00:00
David Sherret
2113bb3e19
fix(es/resolver): Ignore qualifiers of TsImportType (#8299) 2023-11-20 04:04:17 +00:00
SWC Bot
8c3dc02d0d chore: Publish 1.3.98-nightly-20231120.1 2023-11-20 00:07:09 +00:00
SWC Bot
2cd893fb8a chore: Publish crates 2023-11-19 15:13:56 +00:00
Austaras
572ad63e08
fix(es/minifier): Apply new SyntaxContext to inlined Arrow correctly (#8312) 2023-11-20 00:11:38 +09:00
Donny/강동윤
a0048427dd
test(es/minifier): Update test refs (#8310) 2023-11-19 19:16:38 +09:00
SWC Bot
2b368f6731 chore: Publish crates 2023-11-19 06:35:42 +00:00
Zak
fab51e1843
fix(es/proposal): Improve resolving of design:returntype (#8303)
**Description:**

Emits `'design:returntype'` metadata when using `"decoratorMetadata": true`.

**Related issue:**

 - Closes #3319
2023-11-19 15:33:20 +09:00
SWC Bot
cf692e055e chore: Publish 1.3.98-nightly-20231119.1 2023-11-19 00:07:33 +00:00
SWC Bot
f6179b57a1 chore: Publish 1.3.98-nightly-20231118.1 2023-11-18 00:07:05 +00:00
SWC Bot
f38ad1eeef chore: Publish crates 2023-11-18 00:03:24 +00:00
Austaras
c18a959e3a
fix(es/minifier): Apply new SyntaxContext to inlined Arrow (#8301)
**Related issue:**

 - Closes #8288
2023-11-18 09:01:27 +09:00
SWC Bot
ba9d2f56cc chore: Publish 1.3.98-nightly-20231117.1 2023-11-17 00:07:02 +00:00
SWC Bot
2a2b5ee5b1 chore: Publish crates 2023-11-16 08:52:11 +00:00
Donny/강동윤
07c8935904
fix(es/codegen): Fix get_ascii_only_ident (#8287)
**Related issue:**

 - Closes #8260
2023-11-16 08:50:12 +00:00
SWC Bot
9e8fe38d31 chore: Publish crates 2023-11-16 02:03:19 +00:00
David Sherret
369fb21e22
fix(es/codegen): Fix codegen of type args of an import type and a type query (#8296) 2023-11-16 02:01:15 +00:00
SWC Bot
c566b73bfb chore: Publish crates 2023-11-16 00:20:22 +00:00
Donny/강동윤
7985e02fc8
fix(es/minifier): Remove hack for built-in class names (#8293)
**Description:**

Regarding https://github.com/vercel/next.js/issues/55682, I made a mistake while investigating. I assumed it's `swcMinify`-only but it seems like `node-fetch` is fundamentally incompatible with our minification options.

I thought `node-fetch` works with terser, but it did not, and it **should not**. But as I thought `terser` works, I assumed that `terser` has a hack for `AbortSignal`. And that's how I fixed `swcMinify: true`. The correct fix is `keep_classnames: true` but it will result in +~10% bundle size bloat.
At first, I used the correct way (`keep_classnames: true`), but it resulted in the bundle size bloat, so I mimicked the hack of terser with https://github.com/vercel/next.js/pull/57904.

While working on other minification issues, I found that there's no such hack in `terser` and I need to remove the hack in the SWC minifier.
The repro in https://github.com/vercel/next.js/issues/55682 does not work with `swcMinify: false`, even with next@14. The problem of minifier and node-fetch was not exploited before `serverMinification: true`.


**Related issue:**

 - https://github.com/brix/crypto-js/issues/415
2023-11-16 09:17:42 +09:00
SWC Bot
f88d6f3c8d chore: Publish 1.3.98-nightly-20231116.1 2023-11-16 00:06:58 +00:00
SWC Bot
666c843e7e chore: Publish crates 2023-11-15 23:38:46 +00:00
David Sherret
25ac679bd3
build(es): Remove duplicate phf dependency (#8294) 2023-11-15 23:36:38 +00:00
SWC Bot
c03f84e54e chore: Publish crates 2023-11-15 22:45:18 +00:00
David Sherret
66a4d37031
build(common): Remove dependency on string-cache (#8291) 2023-11-15 22:43:22 +00:00
SWC Bot
99617848ef chore: Publish crates 2023-11-15 22:04:42 +00:00
Zak
7d1836de3f
perf(es/minifier): Improve format.inline_script (#8292) 2023-11-15 22:02:29 +00:00
SWC Bot
36fdb179e4 chore: Publish crates 2023-11-15 17:49:24 +00:00