Commit Graph

9054 Commits

Author SHA1 Message Date
강동윤 (Donny)
16687d9ba3 chore: Publish 1.5.8 with swc_core v0.92.5 2024-05-20 11:49:06 +09:00
SWC Bot
4fc3c66f8f chore: Bump crates 2024-05-18 01:45:56 +00:00
Donny/강동윤
9d83d50af4
chore(ci): Fix CI (#8959) 2024-05-18 10:44:19 +09:00
강동윤 (Donny)
35eac478d8 chore: Restore yarn changelog 2024-05-18 09:53:47 +09:00
Donny/강동윤
f960d52364
refactor(bindings): Make @swc/core a subpackage (#8625)
**Description:**

This is for consistency and future extensions.
2024-05-18 09:23:06 +09:00
SWC Bot
edca394374 chore: Publish 1.5.8-nightly-20240516.2 2024-05-16 02:48:21 +00:00
SWC Bot
431d8eaaad chore: Bump crates 2024-05-16 02:37:18 +00:00
Donny/강동윤
02729f24d8
fix(es/minifier): Abort property hoisting on eval (#8957)
**Description:**

 - Repro: https://github.com/kdy1/repro-next-46887-2


**Related issue:**

- https://github.com/vercel/next.js/issues/46887#issuecomment-2113264586
2024-05-16 11:35:45 +09:00
SWC Bot
f681924023 chore: Bump crates 2024-05-16 02:11:50 +00:00
Donny/강동윤
255485e373
fix(es/minifier): Abort array property inliner if the array is used as a ref (#8956)
**Description:**

Repro:
 - https://github.com/kdy1/repro-next-46887

**Related issue:**

 - https://github.com/vercel/next.js/issues/46887
2024-05-16 11:09:41 +09:00
SWC Bot
73532ac7ee chore: Publish 1.5.8-nightly-20240516.1 2024-05-16 00:07:09 +00:00
강동윤 (Donny)
4ef0b68a18 chore: Update changelog 2024-05-15 08:53:37 +09:00
강동윤 (Donny)
a5004fac0f chore: Publish 1.5.7 with swc_core v0.92.4 2024-05-15 08:53:35 +09:00
강동윤 (Donny)
1c38badecc chore: Update @swc/types 2024-05-15 08:53:02 +09:00
강동윤 (Donny)
ee09d7f40c chore: Publiush @swc/types@v0.1.7 2024-05-15 08:51:33 +09:00
SWC Bot
53e1ae2e1b chore: Bump crates 2024-05-14 00:56:51 +00:00
Donny/강동윤
ff60960afe
doc(es/typescript): Fix example (#8952)
**Related issue:**

 - Closes #8950
2024-05-14 00:55:06 +00:00
강동윤 (Donny)
3887a512cc chore: Update changelog 2024-05-14 09:27:18 +09:00
강동윤 (Donny)
5c93873660 chore: Publish 1.5.6 with swc_core v0.92.4 2024-05-14 09:27:15 +09:00
SWC Bot
23b63bc1e5 chore: Bump crates 2024-05-13 09:15:58 +00:00
Donny/강동윤
606cb677c4
fix(es): Allow input source map file to be omitted (#8951)
**Description:**

Some libraries generate source maps but do not upload them to npm, which causes SWC to fail.

**Related issue:**

- https://github.com/swc-project/swc/issues/8789#issuecomment-2105055772
2024-05-13 09:14:21 +00:00
SWC Bot
6bd0d983e2 chore: Bump crates 2024-05-13 05:01:28 +00:00
Austaras
7053bb16ce
fix(es/compat): Avoid reserved name for private method (#8949)
**Description:**

Following development should follow babel/babel#16261 to avoid separate `WeakMap` for each individual private method


**Related issue:**

 - Closes #8948.
2024-05-13 04:59:48 +00:00
SWC Bot
512559818f chore: Bump crates 2024-05-13 01:13:59 +00:00
Donny/강동윤
3046d71daa
fix(es/minifier): Abort seq inliner on ** (#8947)
**Related issue:**

 - Closes #8942
2024-05-13 01:11:46 +00:00
SWC Bot
8baa0e579c chore: Bump crates 2024-05-13 00:48:12 +00:00
Donny/강동윤
772c50fd76
fix(es/minifier): Fix evaluation of String.charCodeAt (#8946)
**Related issue:**

 - Closes #8943
2024-05-13 00:46:29 +00:00
SWC Bot
94ed67e0d8 chore: Publish 1.5.6-nightly-20240511.1 2024-05-11 00:09:32 +00:00
SWC Bot
5673fceaf6 chore: Bump crates 2024-05-10 02:25:42 +00:00
Donny/강동윤
6362ff4ba8
fix(es/ast): Pin version of unicodes (#8941)
**Description:**

https://github.com/swc-project/swc/issues/8940#issuecomment-2102423586

> I found part of the problem:
> 
> U+30FB was added to `ID_Continue` from Unicode version 14 to 15, but v8 is using an older version of unicode ... which I can't find the exact version.
> 
> I spent 2 hours searching for all the missing pieces, I give up.
> 
> Let me back port unicode version 14.

**Related issue:**

 - Closes #8940
2024-05-10 11:23:52 +09:00
SWC Bot
6d7b99b482 chore: Bump crates 2024-05-09 06:56:14 +00:00
Austaras
5a3456c254
fix(es/minifier): Don't invoke IIFE containing reserved words (#8939)
**Description:**

`inline` and `seq inline` should apply this change too.

**Related issue:**

 - Closes #8622
2024-05-09 06:54:25 +00:00
SWC Bot
1f01cd42bd chore: Bump crates 2024-05-09 01:51:35 +00:00
Donny/강동윤
257afc92c9
fix(es/minifier): Abort inliner on mutation via property (#8938)
**Related issue:**

 - Closes #8937
2024-05-09 10:49:41 +09:00
강동윤 (Donny)
94da124172 chore: Update changelog 2024-05-08 16:56:33 +09:00
강동윤 (Donny)
2f898b5eaf chore: Publish 1.5.5 with swc_core v0.92.2 2024-05-08 16:56:30 +09:00
SWC Bot
76393d9fd7 chore: Bump crates 2024-05-08 07:27:20 +00:00
Donny/강동윤
d4be383318
fix(es/minifier): Fix a bug about Tpl => Str (#8934)
**Description:**

I added the method to `swc_ecma_ast` to reuse it from plugins.

**Related issue:**

 - Closes #8931
2024-05-08 07:25:32 +00:00
SWC Bot
2c27925f34 chore: Bump crates 2024-05-08 06:59:23 +00:00
Donny/강동윤
c536d2ad6f
fix(es/module): Resolve .jsx imports fully (#8936)
**Related issue:**

 - Closes #8935
2024-05-08 15:57:50 +09:00
SWC Bot
6021b47c25 chore: Bump crates 2024-05-08 01:39:43 +00:00
Donny/강동윤
c9d72cdc6a
fix(es/minifier): Fix operand handling of ** (#8933)
**Related issue:**

 - Closes #8924
2024-05-08 01:37:57 +00:00
SWC Bot
bd6873ece4 chore: Bump crates 2024-05-07 08:45:28 +00:00
Donny/강동윤
2405dc6ba0
fix(css/modules): Fix :global selectors without preceding whitespace (#8926)
**Related issue:**

 - Closes #8461
2024-05-07 08:43:41 +00:00
SWC Bot
a0c8e1fbec chore: Bump crates 2024-05-07 06:20:59 +00:00
Austaras
8932a1b527
refactor(es/minifier): Remove unnecessary check (#8927) 2024-05-07 06:19:24 +00:00
SWC Bot
8654a34385 chore: Bump crates 2024-05-07 05:54:22 +00:00
Donny/강동윤
7014c63625
fix(css/modules): Allow any order of composes (#8930)
**Related issue:**

 - Closes #8240
2024-05-07 05:52:49 +00:00
SWC Bot
ad1cc5f972 chore: Bump crates 2024-05-07 05:28:42 +00:00
Donny/강동윤
4d4a7a9bcb
fix(es/minifier): Consider side effects of operands of binary expressions (#8929)
**Related issue:**

 - Closes #8923
2024-05-07 05:27:08 +00:00