SWC Bot
a50b5aeeb1
chore: Publish crates
2022-10-14 10:42:11 +00:00
SWC Bot
ef5ed9b4a9
chore: Publish crates
2022-10-14 03:00:49 +00:00
Donny/강동윤
d334c6e783
feat(es/minifier): Ignore return value if a param of IIFE is not used ( #6115 )
2022-10-14 02:58:00 +00:00
SWC Bot
3ff55caa38
chore: Publish crates
2022-10-14 00:35:25 +00:00
Donny/강동윤
3d271e82a2
fix(es/minifier): Preserve return values of recursive IIFE ( #6142 )
...
**Description:**
This PR fixes the logic for dropping return values of IIFE.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6141 .
2022-10-14 09:32:56 +09:00
SWC Bot
31023f8e7e
chore: Publish crates
2022-10-13 23:38:26 +00:00
Donny/강동윤
ec0d6d5a0d
feat(es/minifier): Improve trivial rules ( #6136 )
2022-10-13 23:34:30 +00:00
SWC Bot
0eb91d67a7
chore: Publish crates
2022-10-13 23:03:28 +00:00
Donny/강동윤
3a29bfee9b
feat(es/minifier): Change default pass limit to 3 ( #6138 )
2022-10-14 08:00:32 +09:00
SWC Bot
1affcfe8e8
chore: Publish crates
2022-10-13 06:12:56 +00:00
SWC Bot
769e5a2885
chore: Publish crates
2022-10-13 03:48:18 +00:00
Donny/강동윤
c37839fc62
feat(es/minifier): Swap more binary expressions ( #6134 )
2022-10-13 03:45:05 +00:00
SWC Bot
56da9981bb
chore: Publish crates
2022-10-12 10:06:01 +00:00
SWC Bot
7e1972df7a
chore: Publish crates
2022-10-12 05:34:45 +00:00
Donny/강동윤
5875298377
feat(es/minifier): Merge assignments using sequential inliner ( #6103 )
2022-10-12 05:31:40 +00:00
SWC Bot
7c9cb80a52
chore: Publish crates
2022-10-12 04:34:51 +00:00
Donny/강동윤
fc5d8a5d41
feat(es/minifier): Enable reduce_vars
by default ( #6096 )
2022-10-12 04:32:15 +00:00
SWC Bot
bcc68a8e79
chore: Publish crates
2022-10-12 02:32:34 +00:00
Donny/강동윤
66196a65be
feat(es/minifier): Inline pure array literal partially ( #6099 )
2022-10-12 02:29:40 +00:00
SWC Bot
e37ced5bf4
chore: Publish crates
2022-10-12 01:55:47 +00:00
Austaras
5a23949f12
feat(es/minifier): Inline and remove vars in one pass ( #6093 )
2022-10-12 01:52:58 +00:00
SWC Bot
dcb3a4371d
chore: Publish crates
2022-10-11 23:55:24 +00:00
SWC Bot
521bdbe9cc
chore: Publish crates
2022-10-11 23:11:17 +00:00
Donny/강동윤
ad960c76c0
feat(es/minifier): Detect type of .length
( #6120 )
...
**Description:**
This PR updates minifier to detect the type of `xxx.length` if possible.
2022-10-11 23:06:58 +00:00
SWC Bot
5bf306565f
chore: Publish crates
2022-10-11 11:23:16 +00:00
Donny/강동윤
6365acc9f5
test(es/minifier): Organize terser tests ( #6116 )
...
**Description:**
Our minifier is better than terser in some cases, so we don't need to match the output of terser exactly.
2022-10-11 08:25:11 +00:00
SWC Bot
018ca946e7
chore: Publish crates
2022-10-10 13:09:51 +00:00
SWC Bot
675da485fc
chore: Publish crates
2022-10-10 05:40:39 +00:00
Donny/강동윤
3c6cdbc61c
feat(es/minifier): Enable reduce_funcs
by default ( #6097 )
2022-10-10 05:38:17 +00:00
SWC Bot
f5f293e72e
chore: Publish crates
2022-10-10 00:56:50 +00:00
Austaras
657e5b3111
feat(es/minifier): Inline more lazily initialized vars ( #6089 )
2022-10-10 09:53:50 +09:00
SWC Bot
fe51d7aaa2
chore: Publish crates
2022-10-09 00:24:46 +00:00
Donny/강동윤
b0c57458c8
feat(es/minifier): Mark ref to fn as non-call in alias analyzer ( #6088 )
2022-10-09 09:21:54 +09:00
SWC Bot
818a5cc1eb
chore: Publish crates
2022-10-08 04:08:55 +00:00
Donny/강동윤
d0418ebe5b
doc(es/minifier): Document assumptions ( #6085 )
2022-10-08 13:05:57 +09:00
SWC Bot
969c6eeeeb
chore: Publish crates
2022-10-08 03:17:53 +00:00
Donny/강동윤
9ce3df091f
feat(es/minifier): Distinguish calls in alias analyzer ( #6080 )
...
**Description:**
This PR improves the alias analyzer by distinguishing call and reference, thus reducing the number of identifiers.
---
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2022-10-08 03:15:18 +00:00
SWC Bot
3171718e07
chore: Publish crates
2022-10-07 07:48:18 +00:00
IWANABETHATGUY
8003dc8563
feat(es/codegen): Remove the trailing comma of binding patterns ( #6078 )
2022-10-07 16:45:20 +09:00
SWC Bot
477626b9ff
chore: Publish crates
2022-10-07 05:55:53 +00:00
SWC Bot
15044a35b4
chore: Publish crates
2022-10-06 17:30:14 +00:00
Austaras
ac150c7ced
feat(es/minifier): Use usage_count
in sequential inliner ( #6071 )
2022-10-06 17:27:34 +00:00
SWC Bot
d750f0e03c
chore: Publish crates
2022-10-06 16:11:15 +00:00
SWC Bot
5f49ac012e
chore: Publish crates
2022-10-06 11:38:55 +00:00
SWC Bot
9d6217f036
chore: Publish crates
2022-10-06 09:15:00 +00:00
Austaras
c9427f1ec4
fix(es/minifier): Improve infection analysis ( #6044 )
2022-10-06 18:12:09 +09:00
SWC Bot
07611a935c
chore: Publish crates
2022-10-06 04:50:27 +00:00
Donny/강동윤
38df5978c1
fix(es/minifier): Mark delete
as a property mutation ( #6063 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6004 .
2022-10-06 04:47:58 +00:00
SWC Bot
02a0cd37d7
chore: Publish crates
2022-10-06 02:49:43 +00:00
Donny/강동윤
d65fba134d
fix(es/minifier): Fix infection analysis of sequential inliner ( #6053 )
...
**Description:**
This PR fixes the callee issue by fixing the infection analyzer.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6047
2022-10-06 02:46:22 +00:00