Austaras
8db968a25d
refactor(es/minifier): Remove mutated
and mutation_by_call_count
( #7890 )
...
**Description:**
`mutated` can be seen as a combination of `reassigned` and `has_property_mutation`, and `mutation_by_call_count` is simply useless.
2023-08-30 03:01:29 +00:00
SWC Bot
853b4803ad
chore: Publish crates
2023-08-30 02:26:08 +00:00
SWC Bot
aa8ad10ad8
chore: Publish crates
2023-08-29 10:23:30 +00:00
Austaras
87a47bfb2c
fix(es/minifier): Report is_fn_local
even if var is hoisted ( #7876 )
...
**Related issue:**
- Closes #7847
2023-08-29 10:21:14 +00:00
SWC Bot
c31f05a675
chore: Publish crates
2023-08-29 05:47:51 +00:00
SWC Bot
4a2c24bbec
chore: Publish crates
2023-08-29 05:06:03 +00:00
SWC Bot
562f5e1eb3
chore: Publish crates
2023-08-28 00:31:39 +00:00
Donny/강동윤
4d3fcb86e4
feat(es/ast): Support import attributes proposal ( #7868 )
...
**Related issue:**
- Closes #7179
2023-08-28 00:29:45 +00:00
SWC Bot
5d25307a1a
chore: Publish crates
2023-08-27 23:38:50 +00:00
SWC Bot
2be46c920c
chore: Publish crates
2023-08-27 18:25:51 +00:00
SWC Bot
5c96b8545d
chore: Publish crates
2023-08-25 13:48:47 +00:00
SWC Bot
7986566128
chore: Publish crates
2023-08-25 07:25:19 +00:00
SWC Bot
9c69caf665
chore: Publish crates
2023-08-25 06:07:50 +00:00
SWC Bot
f79ca54584
chore: Publish crates
2023-08-25 04:49:30 +00:00
Lewis Liu
ae8cd9430d
fix(es/minifier): Don't remove exports ( #7856 )
2023-08-25 13:47:42 +09:00
SWC Bot
7b5cb902a5
chore: Publish crates
2023-08-24 12:58:41 +00:00
SWC Bot
a9a6928a4e
chore: Publish crates
2023-08-24 08:20:56 +00:00
SWC Bot
da5bc1084d
chore: Publish crates
2023-08-24 07:37:21 +00:00
Austaras
65db1badff
refactor(es/minifier): Pre-calculate reassigned
( #7832 )
2023-08-24 07:35:26 +00:00
SWC Bot
662f236aa5
chore: Publish crates
2023-08-22 02:06:20 +00:00
Donny/강동윤
7fe01e64dd
fix(es/minifier): Don't inline properties if the var is not fn-local
( #7839 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/54192 .
2023-08-22 11:04:15 +09:00
SWC Bot
becea47a2d
chore: Publish crates
2023-08-17 18:11:16 +00:00
Donny/강동윤
31de19ece2
fix(es/minifier): Preserve more analysis data upon inlining ( #7823 )
...
**Related issue:**
- Closes #7821 .
2023-08-17 18:09:02 +00:00
SWC Bot
9dbfadb48d
chore: Publish crates
2023-08-17 14:38:07 +00:00
SWC Bot
ebbc9292e3
chore: Publish crates
2023-08-17 05:18:03 +00:00
Austaras
f8ca366cc1
fix(es/minifier): Abort seq inliner if var is not fn_local or reassigned ( #7804 )
...
**Description:**
It turns out that the original implementation of `infect`is incomplete
because it cannot cover function param, and the new implementation
introduced in #7772 is redundant because what
[terser](https://github.com/terser/terser/blob/master/lib/compress/tighten-body.js#L909C18-L909C28 )
do is basically checking `fn_local`
**Related issue:**
- Closes #7784
2023-08-17 05:15:59 +00:00
SWC Bot
a6a5ec30cd
chore: Publish crates
2023-08-17 04:37:14 +00:00
Donny/강동윤
05990a98fd
fix(es/minifier): Preserve cooked
while compressing template literals ( #7773 )
...
**Related issue:**
- Closes #7770
2023-08-17 04:35:07 +00:00
SWC Bot
05200ad352
chore: Publish crates
2023-08-17 04:03:33 +00:00
SWC Bot
0d036b4915
chore: Publish crates
2023-08-16 19:11:18 +00:00
SWC Bot
e9dfe879d9
chore: Publish crates
2023-08-16 18:04:14 +00:00
SWC Bot
d5495eeb9a
chore: Publish crates
2023-08-16 14:18:56 +00:00
David Sherret
b43e38d3f9
refactor: Use ahash
from swc_common
in more places ( #7815 )
...
**Description:**
Uses ahash from swc_common in more places. This allows for more easily
swapping out ahash with rustc_hash.
2023-08-16 23:16:52 +09:00
SWC Bot
2dc88ef147
chore: Publish crates
2023-08-16 13:26:52 +00:00
SWC Bot
a671afa0aa
chore: Publish crates
2023-08-16 02:12:39 +00:00
SWC Bot
023042dfb9
chore: Publish crates
2023-08-15 15:29:35 +00:00
SWC Bot
0f66ee315a
chore: Publish crates
2023-08-14 15:47:58 +00:00
SWC Bot
74d446f759
chore: Publish crates
2023-08-14 01:35:45 +00:00
SWC Bot
b5dcce03c1
chore: Publish crates
2023-08-10 08:01:19 +00:00
SWC Bot
be58d36c42
chore: Publish crates
2023-08-10 02:50:53 +00:00
Donny/강동윤
552d9aa344
fix(es/minifier): Do not drop properties used via this
( #7785 )
...
**Related issue:**
- Closes #7783 .
2023-08-10 02:48:35 +00:00
SWC Bot
e90b555790
chore: Publish crates
2023-08-09 20:44:26 +00:00
Donny/강동윤
eff0caca2b
feat(es/minifier): Support mangle.eval
( #7777 )
...
**Related issue:**
- Closes #7754
2023-08-09 20:42:12 +00:00
SWC Bot
0edc4207f4
chore: Publish crates
2023-08-09 20:04:15 +00:00
Austaras
ef8d12154d
fix(es/minifier): Abort seq inliner if a same var is defined in outer scope ( #7772 )
...
**Description:**
The algorithm here is directly copied from terser, I don't if it's correct or can be improved, but it does fix the issue.
**Related issue:**
- Closes #7749
2023-08-09 20:01:59 +00:00
SWC Bot
c04ca528b8
chore: Publish crates
2023-08-09 09:19:00 +00:00
SWC Bot
1c2eb88a60
chore: Publish crates
2023-08-09 05:00:38 +00:00
SWC Bot
83983f49c8
chore: Publish crates
2023-08-07 22:56:50 +00:00
Donny/강동윤
f7afe7edec
refactor(es/minifier): Support stable rustc ( #7734 )
2023-08-07 22:55:00 +00:00
SWC Bot
14906e279f
chore: Publish crates
2023-08-07 22:20:08 +00:00