Austaras
5b2d024788
feat(es/minifier): Relax requirement for IIFE invokation ( #5721 )
2022-09-03 07:33:31 +00:00
SWC Bot
a3a66c1191
chore: Publish crates
2022-09-03 06:47:08 +00:00
Donny/강동윤
31c516a922
perf(es/minifier): Optimize precompress optimizer ( #5727 )
2022-09-03 15:43:50 +09:00
OJ Kwon
d6e67b5944
feat(atoms): Introduce bytecheck-ed rkyv version ( #5686 )
2022-09-03 14:29:02 +09:00
Donny/강동윤
5e151c8a8e
feat(es/minifier): Support cycles in DCE ( #5715 )
2022-09-03 04:41:54 +00:00
SWC Bot
d242605aa1
chore: Publish crates
2022-09-01 16:34:13 +00:00
Donny/강동윤
8827c38faf
feat(es/minifier): Make DCE single-pass ( #5699 )
2022-09-01 16:30:21 +00:00
SWC Bot
1232fa634a
chore: Publish crates
2022-09-01 10:39:21 +00:00
Austaras
4ef99f346b
feat(es/minifier): Relax function inline requirement ( #5607 )
2022-09-01 19:36:16 +09:00
SWC Bot
3a0b749f1e
chore: Publish crates
2022-09-01 04:39:40 +00:00
Donny/강동윤
1085667049
perf(es/minifier): Enable parallel processing ( #5705 )
2022-09-01 13:36:30 +09:00
OJ Kwon
7686faece5
fix(swc_core): Bump versions ( #5706 )
2022-09-01 13:08:04 +09:00
SWC Bot
e1deec44cc
chore: Publish crates
2022-08-31 11:15:03 +00:00
Donny/강동윤
5e2b6d5551
feat(es/minifier): Remove useless ES version check ( #5703 )
2022-08-31 11:11:54 +00:00
SWC Bot
c92a8360e0
chore: Publish crates
2022-08-31 10:36:29 +00:00
Donny/강동윤
217f519940
feat(es/minifier): Ignore closure in initializer from sequential inliner ( #5702 )
2022-08-31 10:33:22 +00:00
SWC Bot
32f6b672da
chore: Publish crates
2022-08-31 07:50:59 +00:00
Donny/강동윤
fc28242b99
feat(es/minifier): Exclude JSON
from alias list ( #5698 )
2022-08-31 16:47:52 +09:00
SWC Bot
1ba1ad4984
chore: Publish crates
2022-08-30 08:04:12 +00:00
Donny/강동윤
fd39bb6bff
fix(es/minifier): Don't inline variables declared multiple times ( #5667 )
2022-08-30 07:52:21 +00:00
SWC Bot
815a7e6f3c
chore: Publish crates
2022-08-30 03:25:43 +00:00
Donny/강동윤
d43334eb92
feat(es/minifier): Remove redundant check ( #5664 )
2022-08-30 12:22:18 +09:00
SWC Bot
e951aa6996
chore: Publish crates
2022-08-29 10:14:19 +00:00
Donny/강동윤
537449e53b
fix(es/codegen): Emit trailing semicolon ( #5659 )
2022-08-29 10:10:55 +00:00
SWC Bot
f2a0eef4f1
chore: Publish crates
2022-08-28 03:18:09 +00:00
Donny/강동윤
100f359e5d
fix(es/minifier): Fix optimization of template literals with escape ( #5650 )
2022-08-28 03:15:12 +00:00
SWC Bot
7a8a172479
chore: Publish crates
2022-08-26 10:09:47 +00:00
Donny/강동윤
a06e6e9ce5
fix(es/minifier): Fix alias analyzer ( #5639 )
2022-08-26 10:06:25 +00:00
SWC Bot
048beefb33
chore: Publish crates
2022-08-26 08:49:14 +00:00
Donny/강동윤
d44bbffa02
fix(es/minifier): Revert alias analyzer work ( #5634 )
2022-08-26 08:45:49 +00:00
SWC Bot
fdd29c9fe5
chore: Publish crates
2022-08-26 08:00:02 +00:00
Donny/강동윤
00e635b9ea
fix(es/minifier): Improve alias analyzer ( #5500 )
2022-08-26 07:56:40 +00:00
SWC Bot
b4416492d1
chore: Publish crates
2022-08-26 05:26:36 +00:00
Donny/강동윤
d81fe67e4b
feat(es/minifier): Improve gzipped size ( #5631 )
2022-08-26 05:23:01 +00:00
SWC Bot
1dd17ffd23
chore: Publish crates
2022-08-25 16:14:21 +00:00
SWC Bot
e5926186ee
chore: Publish crates
2022-08-25 09:01:43 +00:00
SWC Bot
3ea433bd0a
chore: Publish crates
2022-08-25 04:53:03 +00:00
OJ Kwon
1769191f9a
chore(swc_core): Update dependency version ( #5595 )
2022-08-23 10:10:30 +09:00
OJ Kwon
9bc40e3d08
build(swc_core): Fix dependency version ( #5593 )
2022-08-23 00:21:29 +00:00
SWC Bot
1d235e0d06
chore: Publish crates
2022-08-22 00:45:24 +00:00
SWC Bot
2c35990a07
chore: Publish crates
2022-08-21 08:33:31 +00:00
Donny/강동윤
7f5095dd5e
test(es/minifier): Add tests for size ( #5561 )
2022-08-19 06:03:42 +00:00
SWC Bot
1434376ce9
chore: Publish crates
2022-08-19 04:30:32 +00:00
Austaras
69f8945911
feat(es/minifier): Remove more functions and classes ( #5552 )
2022-08-19 04:28:06 +00:00
SWC Bot
2ed9f8f4b1
chore: Publish crates
2022-08-18 05:51:23 +00:00
Donny/강동윤
38b8ca05ad
feat(es/minifier): Optimize numeric property names ( #5548 )
2022-08-18 14:48:54 +09:00
SWC Bot
5155fe0144
chore: Publish crates
2022-08-18 03:00:38 +00:00
Donny/강동윤
7487e3341d
feat(es/minifier): Optimize more string property names ( #5545 )
2022-08-18 11:58:05 +09:00
Donny/강동윤
935a2fbd00
feat(dbg-swc): Improve minifier comparator ( #5541 )
2022-08-18 09:37:19 +09:00
SWC Bot
04602f3485
chore: Publish crates
2022-08-17 23:27:05 +00:00
Austaras
d2f3e29bb0
feat(es/minifier): Ignore recursive usage for function calls and pure calls ( #5526 )
2022-08-17 23:24:10 +00:00
SWC Bot
1bdf6a7385
chore: Publish crates
2022-08-17 13:08:48 +00:00
Austaras
5aa96e00d8
fix(es/minifier): Remove recklessly inline ( #5528 )
2022-08-17 13:06:01 +00:00
Donny/강동윤
69ce1b24d5
test(es/minifier): Remove useless, slow tests ( #5502 )
2022-08-17 15:12:30 +09:00
Donny/강동윤
f7b34e70e9
chore: Publish crates
2022-08-17 14:28:18 +09:00
SWC Bot
554b459e26
chore: Publish crates
2022-08-14 09:59:22 +00:00
Donny/강동윤
40bb695f64
fix(es/minifier): Fix context of call/new expressions ( #5487 )
2022-08-14 18:56:35 +09:00
OJ Kwon
76797b1fc1
build(bindings): Bump up swc_core ( #5484 )
2022-08-14 07:48:15 +00:00
SWC Bot
0391d2c1a9
chore: Publish crates
2022-08-14 06:18:04 +00:00
Donny/강동윤
2045fe6273
fix(es/minifier): Remove wrong code ( #5485 )
2022-08-14 15:15:03 +09:00
SWC Bot
5abf38b361
chore: Publish crates
2022-08-14 05:12:12 +00:00
Donny/강동윤
1a0a2b5842
perf(es/minifier): Remove needless allocation of name mangler ( #5483 )
2022-08-14 05:09:36 +00:00
Donny/강동윤
925839adc6
chore: Publish crates
2022-08-13 19:11:26 +09:00
Donny/강동윤
1b089be611
chore: Publish crates
2022-08-13 14:09:52 +09:00
Donny/강동윤
d2f2a1315b
chore: Publish crates
2022-08-13 00:49:08 +09:00
SWC Bot
415c495505
chore: Publish crates
2022-08-12 13:42:01 +00:00
Donny/강동윤
3eb1f4b2b1
chore(ci): Fix lints ( #5462 )
2022-08-12 13:13:35 +00:00
Donny/강동윤
033e05677a
chore: Publish crates
2022-08-12 15:18:06 +09:00
OJ Kwon
072eb13bf1
build(es): Bump up packages ( #5451 )
2022-08-11 23:58:00 +00:00
OJ Kwon
e25b37d579
build(atoms): Bump swc_atoms
( #5442 )
2022-08-11 18:52:44 +09:00
SWC Bot
cdb9bbd707
chore: Publish crates
2022-08-08 03:00:13 +00:00
Donny/강동윤
7b8658eef2
test(es/minifier): Organize simple size tests ( #5402 )
2022-08-06 22:01:01 +09:00
SWC Bot
368033183e
chore: Publish crates
2022-08-05 13:27:33 +00:00
Austaras
ca21fd0c4d
fix(es/minifier): Inline vars declared in conditional paths ( #5392 )
2022-08-05 13:25:28 +00:00
Donny/강동윤
86da5441e6
test(es/minifier): Organize simple size tests ( #5403 )
2022-08-05 16:42:59 +09:00
Donny/강동윤
a46669d334
test(es/minifier): Add snapshots of compressed libraries ( #5389 )
2022-08-04 08:32:59 +00:00
Austaras
e37b7e8caa
feat(es/codegen): Remove more whitespaces from BinExpr
( #5380 )
2022-08-04 16:52:06 +09:00
Donny/강동윤
84a1ef856a
test(es/minifier): Update the golden list ( #5378 )
2022-08-03 21:17:47 +09:00
SWC Bot
87409946a0
chore: Publish crates
2022-08-03 10:22:47 +00:00
Donny/강동윤
3943eb24d1
feat(es/minifier): Consider char frequencies ( #5375 )
2022-08-03 10:20:17 +00:00
Austaras
77497e4fbe
fix(es/fixer): Don't insert extra paren when left of BinExpr
is UpdateExpr
( #5376 )
2022-08-03 08:41:40 +00:00
SWC Bot
efd43c67c3
chore: Publish crates
2022-08-03 06:22:21 +00:00
Donny/강동윤
6552d1a6f7
perf(es/minifier): Make postcompress pass parallel ( #5374 )
2022-08-03 06:20:04 +00:00
SWC Bot
e13f9230f2
chore: Publish crates
2022-08-03 04:08:12 +00:00
Donny/강동윤
4fdbe40c74
feat(es/minifier): Remove duplicate var
declarations ( #5373 )
2022-08-03 13:05:56 +09:00
SWC Bot
b7573451b3
chore: Publish crates
2022-08-02 11:39:47 +00:00
Austaras
b221f90117
fix(es/minifier): Optimize inlining function calls with a literal in arguments ( #5365 )
2022-08-02 11:37:40 +00:00
SWC Bot
4ae8ff383f
chore: Publish crates
2022-08-01 05:19:11 +00:00
OJ Kwon
fbdc9af5ca
fix(es/minifier): Allow single-thread mode ( #5353 )
2022-08-01 05:16:51 +00:00
Austaras
8611161c02
fix(es/minifier): Ignore member expression without side-effects in assign position ( #5344 )
2022-07-31 16:40:58 +09:00
SWC Bot
f8f62eada4
chore: Publish crates
2022-07-29 08:07:24 +00:00
SWC Bot
328e8123a1
chore: Publish crates
2022-07-29 04:51:13 +00:00
Austaras
11f495ad37
fix(es/minifier): Check if an inlined value is mutated ( #5318 )
2022-07-29 04:49:09 +00:00
SWC Bot
731c4bc4f3
chore: Publish crates
2022-07-29 02:42:20 +00:00
Donny/강동윤
64a99461ec
fix(es/minifier): Change default es version to es5
( #5333 )
2022-07-29 02:40:14 +00:00
OJ Kwon
5c9ea16b2a
build(cargo): Update packages ( #5331 )
2022-07-29 08:30:41 +09:00
SWC Bot
129a886e13
chore: Publish crates
2022-07-27 04:18:47 +00:00
Austaras
0f254d5ce5
feat(es/codegen): Remove extra space before a private method ( #5295 )
2022-07-26 03:35:49 +00:00
SWC Bot
9eb04096b1
chore: Publish crates
2022-07-24 13:57:43 +00:00
Austaras
ee84842d22
fix(es/minifier): Preserve order of side-effects in sequences pass ( #5283 )
2022-07-24 13:55:37 +00:00
Donny/강동윤
a37fdca969
chore: Publish crates
2022-07-22 21:06:43 +09:00
Donny/강동윤
037a53d5d1
perf(es/ast): Use Atom
in some places ( #5271 )
2022-07-22 20:09:25 +09:00
SWC Bot
aef6de4647
chore: Publish crates
2022-07-20 08:27:46 +00:00
Austaras
6573324d9c
feat(es/minifier): Calculate correct size ( #5253 )
2022-07-20 08:25:26 +00:00
SWC Bot
fe74b7067c
chore: Publish crates
2022-07-20 04:10:58 +00:00
OJ Kwon
0d91741eb9
build(cargo): Align dependency versions ( #5248 )
2022-07-20 03:42:04 +00:00
Donny/강동윤
54982d4d72
chore: Publish crates
2022-07-19 11:38:23 +09:00
Austaras
3f0856db2e
feat(es/codegen): Optimize number and bigint literal ( #5223 )
2022-07-18 03:27:03 +00:00
Austaras
2e9c9bea1a
fix(es/minifier): Fix size calculation of numbers ( #5232 )
2022-07-17 18:07:35 +09:00
Donny/강동윤
d3b0996617
chore: Publish crates
2022-07-16 23:30:15 +09:00
SWC Bot
a23464055d
chore: Publish crates
2022-07-13 06:09:56 +00:00
Donny/강동윤
16ece4dce0
fix(es/minifier): Don't merge exported declarations ( #5193 )
2022-07-13 06:07:31 +00:00
Donny/강동윤
b433b69263
chore: Publish crates
2022-07-12 23:58:30 +09:00
Alexander Akait
dada2d7d55
feat(html/minifier): Allow specifying options for other tools ( #5125 )
2022-07-11 13:08:40 +00:00
SWC Bot
c21ffbef2c
chore: Publish crates
2022-07-11 11:39:30 +00:00
Donny/강동윤
d8f57abd26
perf(es/minifier): Remove wrong logic ( #5178 )
2022-07-11 11:37:13 +00:00
SWC Bot
0a13105e84
chore: Publish crates
2022-07-11 09:00:07 +00:00
SWC Bot
2bd5b4413a
chore: Publish crates
2022-07-09 10:17:04 +00:00
SWC Bot
297228a690
chore: Publish crates
2022-07-07 07:48:49 +00:00
SWC Bot
40dabaddfd
chore: Publish crates
2022-07-07 04:38:01 +00:00
SWC Bot
9385103649
chore: Publish crates
2022-07-06 04:44:10 +00:00
SWC Bot
64ccb589b7
chore: Publish crates
2022-07-06 03:55:25 +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/강동윤
b76b4999cc
fix(es/codegen): Fix codegen of some non-ascii characters ( #5108 )
2022-07-05 10:22:25 +00:00
Austaras
9519e801ea
fix(es/resolver): Fix handling of block scoped functions ( #5092 )
2022-07-05 05:04:49 +00:00
SWC Bot
162671ce32
chore: Publish crates
2022-07-03 05:56:40 +00:00
SWC Bot
4da97e9d4a
chore: Publish crates
2022-07-02 04:20:10 +00:00
SWC Bot
f5447cd1b1
chore: Publish crates
2022-07-02 03:53:10 +00:00
Donny/강동윤
c2c923e205
chore: Publish crates
2022-07-01 11:50:45 +09:00
SWC Bot
ff75f8136f
chore: Publish crates
2022-06-30 01:49:17 +00:00
SWC Bot
73874486b2
chore: Publish crates
2022-06-29 11:05:08 +00:00
SWC Bot
5576c3c601
chore: Publish crates
2022-06-29 03:37:57 +00:00
SWC Bot
c4fe6e2286
chore: Publish crates
2022-06-28 06:58:45 +00:00
Donny/강동윤
a15bb48524
feat(es/minifier): Handle pure annotations on member expressions ( #5050 )
2022-06-28 06:55:59 +00:00
Donny/강동윤
8b042745c6
chore: Publish crates
2022-06-27 21:36:54 +09:00
SWC Bot
f41c82ac67
chore: Publish crates
2022-06-26 19:10:58 +00:00
SWC Bot
4883fe8011
chore: Publish crates
2022-06-25 05:06:17 +00:00
Donny/강동윤
eedcb114a2
test(es/minifier): Add a test case for the minifier ( #5013 )
2022-06-20 14:38:23 +00:00
SWC Bot
a2fa4a78e2
chore: Publish crates
2022-06-18 09:39:27 +00:00
Donny/강동윤
36d960c7e9
perf(es/hygiene): Make hygiene
faster ( #4952 )
2022-06-15 14:36:57 +00:00
Donny/강동윤
b3f6f20721
fix(es/resolver): Make catch parameter not disturb resolving ( #4976 )
2022-06-15 05:24:39 +00:00
SWC Bot
94e553da3b
chore: Publish crates
2022-06-14 16:36:07 +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
SWC Bot
91cff0af80
chore: Publish crates
2022-06-13 20:05:54 +00:00
LongYinan
35806385ea
perf(es/minifier): Make more things parallel and reduce call stacks ( #4915 )
2022-06-14 05:03:09 +09:00
SWC Bot
12914ef53f
chore: Publish crates
2022-06-12 02:39:45 +00:00
Austaras
47bdc6a6b1
feat(es/minifier): Turn Array
/Object
calls into literals ( #4947 )
2022-06-12 02:36:49 +00:00
Donny/강동윤
bfede71e6c
chore: Publish crates
2022-06-11 16:47:29 +09:00
SWC Bot
0f094da77f
chore: Publish crates
2022-06-11 07:45:15 +00:00
magic-akari
594089488b
feat(es/minifier): Drop new
token if possible ( #4932 )
2022-06-11 05:27:13 +00:00
SWC Bot
99deeac8ce
chore: Publish crates
2022-06-10 08:52:47 +00:00
Donny/강동윤
be87494495
fix(es/minifier): Reserve more symbols on eval
( #4925 )
2022-06-10 08:49:56 +00:00
SWC Bot
6bc39005bb
chore: Publish crates
2022-06-10 06:39:52 +00:00
Donny/강동윤
fc0d8e3f74
perf(es/minifier): Change default pass limit to 2 ( #4924 )
2022-06-10 06:37:25 +00:00
SWC Bot
7c9ab26256
chore: Publish crates
2022-06-08 07:24:11 +00:00
Donny/강동윤
eb0acc3859
chore: Publish crates
2022-06-06 04:54:19 +09: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
SWC Bot
8a9abfbe10
chore: Publish crates
2022-05-30 06:48:44 +00:00
Donny/강동윤
8365c3d0df
fix(es/minifier): Make if_return
to not drop required returns ( #4847 )
2022-05-30 06:46:01 +00:00
SWC Bot
19562af0c7
chore: Publish crates
2022-05-29 11:17:45 +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
SWC Bot
7f731a2ab2
chore: Publish crates
2022-05-28 04:35:18 +00:00
Donny/강동윤
58b24278ee
perf(es/minifier): Make name mangler parallel ( #4824 )
2022-05-28 13:32:48 +09:00
Donny/강동윤
7f69b9c80f
test(es/minifier): Add snapshots for the mangler ( #4823 )
...
I found a way to make the name mangler parallel, but I want to ensure that we don't break anything.
2022-05-27 07:32:23 +00:00
SWC Bot
05f9e257a0
chore: Publish crates
2022-05-27 06:50:43 +00:00
Donny/강동윤
4b27df9f12
perf(es/minifier): Make more passes parallel ( #4821 )
2022-05-27 06:48:08 +00:00
SWC Bot
424e62e663
chore: Publish crates
2022-05-26 16:01:22 +00:00
SWC Bot
a163279c88
chore: Publish crates
2022-05-26 11:35:19 +00:00
SWC Bot
bebdb8a897
chore: Publish crates
2022-05-26 09:30:36 +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
SWC Bot
829a9c0dd3
chore: Publish crates
2022-05-26 07:40:07 +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/강동윤
38a866a900
test(es): Make execution tests faster ( #4789 )
2022-05-25 06:23:35 +00:00
brightwu
f28d9c143b
fix(es/resolver): Fix more edge cases related to catch
and var
( #4773 )
2022-05-24 09:24:42 +00:00
SWC Bot
5be6661e9a
chore: Publish crates
2022-05-23 22:11:58 +00:00
Donny/강동윤
20b724d3cd
feat(es/minifier): Implement more rules ( #4763 )
2022-05-23 22:09:33 +00:00
Donny/강동윤
e4dee1ed33
fix(es/minifier): Consider parameters while detecting pure calls ( #4748 )
2022-05-23 13:04:11 +00:00
SWC Bot
476c830a30
chore: Publish crates
2022-05-23 10:02:59 +00:00
Baoshuo Ren
22bf5f014e
chore(es/minifier): Add #[doc(hidden)]
( #4751 )
2022-05-23 19:00:22 +09:00
Donny/강동윤
0f85f7b9de
chore(ci): Fix CI ( #4747 )
2022-05-23 07:47:05 +00: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
SWC Bot
8060264715
chore: Publish crates
2022-05-23 04:32:07 +00:00
Donny/강동윤
a51816a577
feat(es/minifier): Handle prefix update expressions with sequential inliner ( #4741 )
2022-05-23 04:29:31 +00:00
SWC Bot
624c4ad48b
chore: Publish crates
2022-05-22 12:09:50 +00:00
Donny/강동윤
9e42382091
feat(es/minifier): Implement pure_funcs
( #4710 )
2022-05-22 12:07:28 +00:00
SWC Bot
1b715a1a2b
chore: Publish crates
2022-05-20 07:04:12 +00:00
Donny/강동윤
dc67911f61
feat(es/minifier): Implement more skipping rules for sequences
( #4716 )
2022-05-20 16:01:27 +09:00
SWC Bot
279f9db0b7
chore: Publish crates
2022-05-20 04:59:56 +00:00
Donny/강동윤
1358f452e7
fix(es/minifier): Consider more side effects while inlining ( #4715 )
2022-05-20 04:57:38 +00:00
Kevin Barabash
72fbf692a4
fix(es/codegen): Don't add a newline after an arrow body ( #4711 )
2022-05-19 07:12:37 +00:00
SWC Bot
224a2ea8b6
chore: Publish crates
2022-05-19 05:12:49 +00:00
Donny/강동윤
73dfa95e5a
fix(es/minifier): Fix analysis of assignment patterns ( #4712 )
2022-05-19 05:10:12 +00:00
Donny/강동윤
6f565fbb3a
test(es/minifier): Categorize more tests ( #4709 )
2022-05-19 04:33:11 +00:00
SWC Bot
6a7240f046
chore: Publish crates
2022-05-18 13:54:03 +00:00
Donny/강동윤
9a27b5f275
perf(es/minifier): Make minifier more parallel ( #4699 )
2022-05-18 13:51:25 +00:00
SWC Bot
fe5b2e12af
chore: Publish crates
2022-05-18 10:49:45 +00:00
Donny/강동윤
809a626a99
fix(es/minifier): Don't create keys with negative number ( #4698 )
2022-05-18 19:47:00 +09:00
SWC Bot
d29a00c9cc
chore: Publish crates
2022-05-18 08:42:52 +00:00
Donny/강동윤
274648ec26
feat(es/minifier): Improve if_return
( #4694 )
2022-05-18 08:39:57 +00:00
SWC Bot
9792cffefa
chore: Publish crates
2022-05-18 07:27:53 +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
SWC Bot
f226c0a3d8
chore: Publish crates
2022-05-17 07:37:08 +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
SWC Bot
b395a8b3ce
chore: Publish crates
2022-05-16 12:30:22 +00:00
Donny/강동윤
3bb4b74d94
fix(es/minifier): Consider fallthrough while merging swtich cases ( #4672 )
2022-05-16 12:27:24 +00:00
Donny/강동윤
ba6688a783
feat(dbg-swc): Make reducer parallel ( #4676 )
2022-05-16 12:49:42 +09: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
SWC Bot
86efe781a3
chore: Publish crates
2022-05-15 16:24:33 +00:00
Donny/강동윤
e57123e61c
feat(es/minifier): Improve ignore_return_value
( #4673 )
2022-05-15 16:22:21 +00:00
SWC Bot
8b9851a336
chore: Publish crates
2022-05-15 10:04:57 +00:00
Donny/강동윤
8a40b583a5
feat(es/minifier): Implement directives
( #4668 )
2022-05-15 10:02:55 +00:00
SWC Bot
d591ce8c0b
chore: Publish crates
2022-05-15 09:39:48 +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
SWC Bot
ead25ee153
chore: Publish crates
2022-05-15 05:09:48 +00:00
Donny/강동윤
eb8508f88c
feat(es/codegen): Implement ascii-only ( #4660 )
2022-05-15 05:07:21 +00:00
SWC Bot
36a3cdaac2
chore: Publish crates
2022-05-14 07:08:36 +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
Donny/강동윤
b393773373
feat(debug): Inline dbg-swc
( #4651 )
2022-05-13 06:05:21 +00:00
Donny/강동윤
9c190f0a8e
fix(es/minifier): Fix optimization of spread ( #4639 )
2022-05-12 09:20:44 +00:00
Donny/강동윤
79f87e03db
test(es/minifier): Execute more tests ( #4636 )
2022-05-12 16:28:52 +09:00
SWC Bot
cb5ca547aa
chore: Publish crates
2022-05-12 15:14:28 +09:00
Donny/강동윤
56a227ad9d
fix(es/minifier): Don't create direct eval
( #4634 )
...
- `expr_simplifier`: Preserve `this`.
- `ExprReplacer`: Inject `0` after inlining eval.
- `MultiReplacer`: Inject `0` after inlining eval.
2022-05-12 15:14:18 +09:00
SWC Bot
97808349a2
chore: Publish crates
2022-05-11 16:17:07 +00:00
SWC Bot
90569d4673
chore: Publish crates
2022-05-11 04:38:52 +00:00
Donny/강동윤
6a97c7bef8
fix(es/utils): Fix wrong apis ( #4604 )
...
# API Changes
## `swc_ecma_utils`
### Renames
- `find_ids` => `find_pat_ids`
- `prepend` => `prepend_stmt`
- `as_bool` => `cast_to_bool`
- `as_number` => `as_pure_number`
- `as_string` => `cast_to_string`
- (`as_pure_bool`, `cast_to_number` is not renamed)
- `UsageFinder` => `IdentUsageFinder`.
- `IdentFinder` => `IdentRefFinder`.
## Changes
- Re-export of `HANDLER` from `swc_common::errors` is removed. Use `swc_common::error::HANDLER` instead.
- Re-export of `Id` from `swc_ecma_ast` is removed. Use `swc_ecma_ast::Id` instead.
- `ExprCtx` is used for apis related to `Expr`.
- `preserve_effects` is now a method of `ExprCtx`. It was a top-level function.
- `extract_side_effects_to` is now a method of `ExprCtx`. It was a top-level function.
- `IdentUsageFinder` (previously `UsageFinder`) now takes `Id` instead of `Ident`.
- `IdentRefFinder` (previously `IdentFinder`) now takes `Id` instead of `Ident`.
- `ExprExt::is_ident_ref_to` is removed.
- `Expr::is_global_ref_to` is added.
- `:🆔 :id` is removed. Use `Ident::to_id()` instead.
2022-05-11 04:36:22 +00:00
Donny/강동윤
2c861bd9e5
feat(es/ast): Improve Id
APIs ( #4614 )
...
# API Changes
- `Ident` now has `to_id()`. This method is added to allow removing an import.
2022-05-11 12:02:14 +09:00
Donny/강동윤
6918e3a4fb
test(es/minifier): Postpone tests which can be verified by execution tests ( #4600 )
2022-05-10 14:47:37 +09:00
Donny/강동윤
859dc440b4
fix(es/minifier): Preserve more this
( #4599 )
2022-05-10 05:20:36 +00:00
Donny/강동윤
d611d543ea
fix(es/fixer): Handle new yield
( #4598 )
2022-05-10 04:17:11 +00:00
SWC Bot
e52c06fe0d
chore: Publish crates
2022-05-10 03:57:45 +00:00
Donny/강동윤
8944a3bdf5
fix(es/minifier): Fix switch with a unknown case ( #4597 )
2022-05-10 03:55:34 +00:00
SWC Bot
20a7304267
chore: Publish crates
2022-05-10 03:24:33 +00:00
Donny/강동윤
097ff1ddc1
fix(es/minifier): Fix with
and NaN
( #4596 )
2022-05-10 03:21:43 +00:00
Donny/강동윤
2ab7594b4a
fix(es/minifier): Fix switches ( #4595 )
2022-05-09 21:36:09 +00:00
Donny/강동윤
dd09cdf8b1
fix(es/minifier): Fix handling of NaN
( #4593 )
2022-05-09 19:08:28 +00:00
SWC Bot
ba406f6120
chore: Publish crates
2022-05-09 16:38:56 +00:00
Donny/강동윤
3521ce09e7
fix(es/minifier): Consider more aliases in sequences pass ( #4583 )
2022-05-09 16:36:40 +00:00
SWC Bot
51d7078175
chore: Publish crates
2022-05-09 11:27:12 +00:00
Donny/강동윤
8db3442216
fix(es/minifier): Unwrap blocks more carefully ( #4586 )
2022-05-09 11:24:53 +00:00
SWC Bot
6833bb9c6d
chore: Publish crates
2022-05-09 09:17:37 +00:00
Donny/강동윤
7e80c10cba
fix(es/minifier): Don't create an invalid labeled statement ( #4581 )
2022-05-09 09:15:12 +00:00