Commit Graph

242 Commits

Author SHA1 Message Date
Austaras
ee84842d22
fix(es/minifier): Preserve order of side-effects in sequences pass (#5283) 2022-07-24 13:55:37 +00:00
Donny/강동윤
037a53d5d1
perf(es/ast): Use Atom in some places (#5271) 2022-07-22 20:09:25 +09:00
Austaras
6573324d9c
feat(es/minifier): Calculate correct size (#5253) 2022-07-20 08:25:26 +00:00
Donny/강동윤
16ece4dce0
fix(es/minifier): Don't merge exported declarations (#5193) 2022-07-13 06:07:31 +00:00
Alexander Akait
dada2d7d55
feat(html/minifier): Allow specifying options for other tools (#5125) 2022-07-11 13:08:40 +00:00
Donny/강동윤
d8f57abd26
perf(es/minifier): Remove wrong logic (#5178) 2022-07-11 11:37:13 +00:00
Donny/강동윤
0e4a03ccc6
fix(es/minifier): Don't inline a callable expression if it's used as a reference (#5118) 2022-07-06 03:53:11 +00:00
Donny/강동윤
a15bb48524
feat(es/minifier): Handle pure annotations on member expressions (#5050) 2022-06-28 06:55:59 +00:00
Donny/강동윤
36d960c7e9
perf(es/hygiene): Make hygiene faster (#4952) 2022-06-15 14:36:57 +00:00
Donny/강동윤
99a474cb2d
refactor(es/minifier): Use Program instead of Module (#4969) 2022-06-14 16:33:38 +00:00
LongYinan
db9f7a5ad4
chore(ci): Fix publish build on Windows (#4970) 2022-06-14 15:58:10 +00:00
LongYinan
35806385ea
perf(es/minifier): Make more things parallel and reduce call stacks (#4915) 2022-06-14 05:03:09 +09:00
Austaras
47bdc6a6b1
feat(es/minifier): Turn Array/Object calls into literals (#4947) 2022-06-12 02:36:49 +00:00
magic-akari
594089488b
feat(es/minifier): Drop new token if possible (#4932) 2022-06-11 05:27:13 +00:00
Donny/강동윤
be87494495
fix(es/minifier): Reserve more symbols on eval (#4925) 2022-06-10 08:49:56 +00:00
Donny/강동윤
fc0d8e3f74
perf(es/minifier): Change default pass limit to 2 (#4924) 2022-06-10 06:37:25 +00:00
Donny/강동윤
06420d99bb
fix(es/minifier): Don't drop typeof (#4883) 2022-06-05 07:43:53 +00:00
Austaras
83ae6a1f1f
feat(es/minifier): Remove extra parens in BinExpr (#4878) 2022-06-05 05:52:22 +00:00
Donny/강동윤
8365c3d0df
fix(es/minifier): Make if_return to not drop required returns (#4847) 2022-05-30 06:46:01 +00:00
Donny/강동윤
0567f67664
fix(es/minifier): Apply name mangler for more cases (#4840) 2022-05-29 11:15:16 +00:00
Donny/강동윤
f847709787
chore(common): Update rustc (#4828) 2022-05-28 07:07:58 +00:00
Donny/강동윤
58b24278ee
perf(es/minifier): Make name mangler parallel (#4824) 2022-05-28 13:32:48 +09:00
Donny/강동윤
4b27df9f12
perf(es/minifier): Make more passes parallel (#4821) 2022-05-27 06:48:08 +00:00
Donny/강동윤
073b1469e6
fix(es/minifier): Don't create names which is same as an unresolved var (#4806) 2022-05-26 09:27:24 +00:00
Donny/강동윤
1c48a8c8f4
fix(es/minifier): Consider side effects while removing an object spread (#4788) 2022-05-26 07:37:34 +00:00
Donny/강동윤
20b724d3cd
feat(es/minifier): Implement more rules (#4763) 2022-05-23 22:09:33 +00:00
Baoshuo Ren
22bf5f014e
chore(es/minifier): Add #[doc(hidden)] (#4751) 2022-05-23 19:00:22 +09:00
Donny/강동윤
49b3c2715c
refactor(es/minifier): Make rust-analyzer fast, really (#4746) 2022-05-23 16:16:05 +09:00
Donny/강동윤
47e6cc5190
refactor(es/minifier): Make rust-analyzer faster (#4744)
- We now use a separate crate for testing the minifier. This makes IDE much faster.
2022-05-23 15:53:01 +09:00
Donny/강동윤
a51816a577
feat(es/minifier): Handle prefix update expressions with sequential inliner (#4741) 2022-05-23 04:29:31 +00:00
Donny/강동윤
9e42382091
feat(es/minifier): Implement pure_funcs (#4710) 2022-05-22 12:07:28 +00:00
Donny/강동윤
dc67911f61
feat(es/minifier): Implement more skipping rules for sequences (#4716) 2022-05-20 16:01:27 +09:00
Donny/강동윤
1358f452e7
fix(es/minifier): Consider more side effects while inlining (#4715) 2022-05-20 04:57:38 +00:00
Donny/강동윤
73dfa95e5a
fix(es/minifier): Fix analysis of assignment patterns (#4712) 2022-05-19 05:10:12 +00:00
Donny/강동윤
9a27b5f275
perf(es/minifier): Make minifier more parallel (#4699) 2022-05-18 13:51:25 +00:00
Donny/강동윤
809a626a99
fix(es/minifier): Don't create keys with negative number (#4698) 2022-05-18 19:47:00 +09:00
Donny/강동윤
274648ec26
feat(es/minifier): Improve if_return (#4694) 2022-05-18 08:39:57 +00:00
Donny/강동윤
183e884cbf
fix(es/minifier): Don't hoist functions with dead_code (#4695) 2022-05-18 07:25:25 +00:00
Donny/강동윤
07356a5bba
fix(es/ast): Fix EqIgnoreSpan of Ident (#4689) 2022-05-17 10:21:01 +00:00
Donny/강동윤
c01476d9ae
feat(es/minifier): Enable conditionals by default (#4687) 2022-05-17 07:34:47 +00:00
Donny/강동윤
04d66dbc8b
feat(es/minifier): Enable computed_props by default (#4678) 2022-05-16 12:51:38 +00:00
Donny/강동윤
3bb4b74d94
fix(es/minifier): Consider fallthrough while merging swtich cases (#4672) 2022-05-16 12:27:24 +00:00
Donny/강동윤
36ff4f735f
test(es/minifier): Add size tests using dbg-swc (#4664) 2022-05-16 03:01:53 +00:00
Donny/강동윤
50db276d82
build(repo): Downgrade rustc (#4674) 2022-05-15 19:28:55 +00:00
Donny/강동윤
e57123e61c
feat(es/minifier): Improve ignore_return_value (#4673) 2022-05-15 16:22:21 +00:00
Donny/강동윤
8a40b583a5
feat(es/minifier): Implement directives (#4668) 2022-05-15 10:02:55 +00:00
Donny/강동윤
96cec97b2c
fix(es/minifier): Don't inline a function if we need referential equality (#4665) 2022-05-15 09:37:34 +00:00
Donny/강동윤
98e4845fce
build(repo): Update rustc (#4667) 2022-05-15 09:03:54 +00:00
Donny/강동윤
053f42b3aa
feat(es/minifier): Improve minifier (#4655)
swc_ecma_transforms_base:
 - Improved `fixer`.

swc_ecma_minifier:
 - `ignore_return_value`: Support computed access to array literals.
2022-05-14 07:06:03 +00:00
Donny/강동윤
af1d19554f
feat(dbg-swc): Add command to compare minifier (#4653) 2022-05-13 09:13:23 +00:00