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
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
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
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
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
Donny/강동윤
c9d72cdc6a
fix(es/minifier): Fix operand handling of **
( #8933 )
...
**Related issue:**
- Closes #8924
2024-05-08 01:37:57 +00:00
Austaras
8932a1b527
refactor(es/minifier): Remove unnecessary check ( #8927 )
2024-05-07 06:19:24 +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
SWC Bot
431b7306b8
chore: Bump crates
2024-05-07 03:17:29 +00:00
Donny/강동윤
aca6a77903
fix(es/minifier): Respect module: false
( #8925 )
...
**Description:**
Tests are modified because I enabled script detection for the fixture test suite.
**Related issue:**
- Closes #8909
2024-05-07 12:15:47 +09:00
SWC Bot
9ec9459b16
chore: Bump crates
2024-04-30 07:55:10 +00:00
Donny/강동윤
86e2bb04ac
fix(es/minifier): Increment ref_count
while invoking IIFE ( #8904 )
...
**Related issue:**
- Closes #8880
2024-04-30 09:11:23 +09:00
강동윤 (Donny)
7ac3b0a7dc
chore: Bump crates
2024-04-29 09:56:27 +09:00
magic-akari
cc1432a12f
chore: Apply cargo autoinherit
( #8902 )
2024-04-29 00:54:45 +00:00
SWC Bot
0fc70b3579
chore: Bump crates
2024-04-27 04:46:08 +00:00
Donny/강동윤
be359fa753
fix(es/minifier): Do not add vars if eval
exists ( #8888 )
...
**Related issue:**
- Closes #8886
---------
Co-authored-by: austaras <austaras@outlook.com>
2024-04-27 13:44:25 +09:00
SWC Bot
f9106a50c0
chore: Bump crates
2024-04-24 00:37:30 +00:00
SWC Bot
d925f8a6d2
chore: Bump crates
2024-04-23 12:36:02 +00:00
Austaras
cd4548fd8c
fix(es/minifier): Abort seq inline on recursive usage ( #8887 )
...
**Related issue:**
- Closes #8841
2024-04-23 12:34:14 +00:00
Donny/강동윤
a1c5415b3b
feat(es/transforms): Allocate stacks dynamically ( #8867 )
...
**Description:**
- This PR introduces an in-tree testing system for Deno.
- This PR adds `stacker` cargo-feature to `swc_ecma_utils`.
**Related issue:**
- #1627
- Closes #8840
2024-04-16 19:43:58 +09:00
Donny/강동윤
740c0bb00a
fix(es/minifier): Remove raw
of strings after modification ( #8865 )
...
**Related issue:**
- Closes #8864
2024-04-16 04:39:54 +00:00
David E Disch
df2e056f29
refactor(es/minifier): Remove mangle.safari10
( #8857 )
...
**Related issue:**
- Closes #8837
2024-04-16 03:05:43 +00:00
SWC Bot
0af201043a
chore: Bump crates
2024-04-16 02:24:47 +00:00
Donny/강동윤
ca9c76b46f
build(cargo): Update rustc to nightly-2024-04-03
( #8821 )
2024-04-16 02:20:47 +00:00
Austaras
f6ba92b033
fix(es/resolver): Correctly check strict mode ( #8851 )
...
**Related issue:**
- Closes #8842
2024-04-13 02:38:10 +00:00
magic-akari
7a89e5da3b
fix(es/minifier): Handle switch cases ( #8854 )
...
**Related issue:**
- Closes #8813
2024-04-13 02:11:32 +00:00
Austaras
a7a32c4b6c
fix(es/utils): Preserve optional chain effect ( #8850 )
...
**Related issue:**
- Closes #8844
2024-04-12 08:33:01 +00:00
SWC Bot
487992d9fa
chore: Bump crates
2024-04-09 06:24:27 +00:00
Donny/강동윤
ebb68db24d
fix(es/minifier): Abort IIFE invoker in function parameters ( #8828 )
...
**Related issue:**
- Closes #8826
2024-04-09 15:22:38 +09:00
SWC Bot
1871a76534
chore: Bump crates
2024-04-05 00:04:37 +00:00
Donny/강동윤
811308c352
fix(es/minifier): Respect top_retain
for top-level functions ( #8814 )
2024-04-05 00:02:51 +00:00
Donny/강동윤
47714c52ce
feat(es/minifier): Evaluate spread of arrays ( #8811 )
...
**Related issue:**
- Closes #8808
2024-04-04 06:56:29 +00:00
Donny/강동윤
730ded2a26
fix(es/minifier): Abort fn inliner if there's a spread arg ( #8809 )
...
**Description:**
**Related issue:**
- Closes #8806
2024-04-04 15:24:31 +09:00
SWC Bot
d1eb7b8136
chore: Bump crates
2024-04-04 06:12:30 +00:00
Donny/강동윤
207582ff25
chore(deps): Update dependencies ( #8810 )
2024-04-04 15:07:49 +09:00
SWC Bot
cd06af3ef7
chore: Bump crates
2024-03-26 03:56:14 +00:00
Donny/강동윤
e7bca10142
fix(es/minifier): Fix tpl-to-string conversion ( #8778 )
...
**Related issue:**
- Closes #8773
2024-03-26 03:54:35 +00:00
Donny/강동윤
9f98a7026d
fix(es/minifier): Abort eval on valueOf
or toString
( #8763 )
...
**Related issue:**
- Closes #8704
- Closes #8705
2024-03-20 02:35:24 +00:00
SWC Bot
82d1b8e49a
chore: Bump crates
2024-03-17 13:04:54 +00:00
SWC Bot
31ecd2a6c1
chore: Bump crates
2024-03-14 01:32:37 +00:00
SWC Bot
6e672aaf9a
chore: Bump crates
2024-03-13 03:08:09 +00:00
SWC Bot
8a5163ce5d
chore: Bump crates
2024-03-13 02:23:10 +00:00