Commit Graph

349 Commits

Author SHA1 Message Date
Donny/강동윤
2e095face5
feat(es/minifier): Improve evaluation of template literals (#4359) 2022-04-18 08:43:54 +09:00
SWC Bot
d58e303e83 chore: Publish crates 2022-04-17 22:18:38 +00:00
Donny/강동윤
e13b8625f2
feat(es/minifier): Implement more evaluation rules (#4356)
- We now handle `array.join` in parallel optimizer.
 - We now handle `[].join` of template literals.
 - We now optimize a template literal as a string addition, in unsafe mode.
2022-04-17 22:16:21 +00:00
Donny/강동윤
8309440008
chore(es): Rename benchmarks (#4355) 2022-04-17 18:36:15 +00:00
Donny/강동윤
b3b95acc75
feat(es/minifier): const => let (#3654) 2022-04-17 15:52:29 +00:00
SWC Bot
320e27fb52 chore: Publish crates 2022-04-17 14:27:11 +00:00
Donny/강동윤
42e15aedc2
perf(es/minifier): Split frequently used functions (#4352) 2022-04-17 14:22:38 +00:00
Donny/강동윤
2563c7f8ff
chore(es/minifier): Improve scripts (#4339) 2022-04-17 19:53:47 +09:00
Donny/강동윤
14c74f50c0
chore(es/minifier): Organize scripts (#4347) 2022-04-17 10:16:40 +00:00
SWC Bot
a128b658b7 chore: Publish crates 2022-04-17 08:17:44 +00:00
Austaras
5a5e41aaaa
fix(es/minifier): Preserve vars in dead branches (#4345) 2022-04-17 08:15:14 +00:00
Donny/강동윤
66ff7b8a09
perf(es/minifier): Make name mangler faster (#4342) 2022-04-17 15:35:36 +09:00
SWC Bot
3459b18c32 chore: Publish crates 2022-04-15 22:33:58 +00:00
Donny/강동윤
ba5f7436c1
chore(es/minifier): Add full benchmark for .minify() (#4341) 2022-04-15 22:31:15 +00:00
SWC Bot
6b1e175de4 chore: Publish crates 2022-04-15 11:04:04 +00:00
Donny/강동윤
4110fcb961
fix(es/minifier): Inline before cloning (#4338) 2022-04-15 11:01:29 +00:00
SWC Bot
075c7ff79d chore: Publish crates 2022-04-15 08:28:31 +00:00
Donny/강동윤
f92242dcb1
feat(es/minifier): Improve sequential inliner (#4335)
- We now skip more expressions.
2022-04-15 08:25:31 +00:00
SWC Bot
995b4367cc chore: Publish crates 2022-04-15 07:39:50 +00:00
Donny/강동윤
8886a4b572
fix(es/minifier): Respect dead_code (#4328) 2022-04-14 06:00:43 +00:00
SWC Bot
39dc394933 chore: Publish crates 2022-04-13 14:26:17 +00:00
Donny/강동윤
2002554fa2
refactor(es/minifier): Clean up logging (#4322) 2022-04-13 23:23:07 +09:00
Donny/강동윤
0245e26af5
fix(es/codegen): Fix overflow of numeric literals (#4321) 2022-04-13 10:16:51 +00:00
Alexander Akait
81370d16cb
fix(css/parser): Parse legacy calcs (#4320) 2022-04-13 07:02:31 +00:00
SWC Bot
06c829da71 chore: Publish crates 2022-04-12 03:42:51 +00:00
Donny/강동윤
74a5087989
feat(es/minifier): Enable dead_code by default (#4309) 2022-04-12 03:40:10 +00:00
SWC Bot
e133071c41 chore: Publish crates 2022-04-12 02:15:01 +00:00
Donny/강동윤
7e8f613272
feat(es/minifier): Enable conditionals by default (#4301) 2022-04-12 02:12:10 +00:00
SWC Bot
fa880634bd chore: Publish crates 2022-04-11 20:05:28 +00:00
SWC Bot
4a097adbf7 chore: Publish crates 2022-04-11 18:48:43 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting (#4304) 2022-04-11 18:45:58 +00:00
Austaras
df0d572b4f
chore(es/minifier): Update terser test references (#4297) 2022-04-10 06:50:52 +00:00
SWC Bot
d1a5115c6e chore: Publish crates 2022-04-09 09:18:07 +00:00
Donny/강동윤
b990b19ed1
fix(es/minifier): Fix inlining of uninitialized variables (#4292) 2022-04-09 09:15:40 +00:00
SWC Bot
974919eafa chore: Publish crates 2022-04-08 08:59:03 +00:00
Donny/강동윤
c961371c31
fix(es/minifier): Fix handling of eval (#4273) 2022-04-08 08:56:28 +00:00
SWC Bot
9feabcd145 chore: Publish crates 2022-04-07 08:11:17 +00:00
Donny/강동윤
434dcf4af7
refactor(es/minifier): Merge code for multi-replacer (#4269) 2022-04-07 08:08:42 +00:00
OJ Kwon
fad652f879
chore(plugin): Align version of swc_common to include dummy comment api (#4270) 2022-04-07 07:21:37 +00:00
SWC Bot
91e889f531 chore: Publish crates 2022-04-06 11:10:53 +00:00
Donny/강동윤
1f5cac4d41
feat(es/minifier): Implement more rules for hoist_props (#4262) 2022-04-06 11:01:45 +00:00
SWC Bot
35ad940ca5 chore: Publish crates 2022-04-06 06:31:19 +00:00
Donny/강동윤
ab1f440103
feat(es/minifier): Exclude local bindings from aliases (#4261)
- We now exclude bindings created by the initializer while analyzing aliases.
2022-04-06 06:28:49 +00:00
SWC Bot
5eb3d8315a chore: Publish crates 2022-04-05 12:49:22 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw to Num (#4245) 2022-04-05 12:46:35 +00:00
SWC Bot
9843ee42df chore: Publish crates 2022-04-05 07:37:06 +00:00
Donny/강동윤
350a19587e
fix(es/minifier): Fix infinite loops (#4250)
- We now don't mark changes due to `negate_cost` as a change.
2022-04-05 07:29:10 +00:00
SWC Bot
ea871e2879 chore: Publish crates 2022-04-05 06:27:53 +00:00
Donny/강동윤
4701da576f
feat(es/minifier): Improve inliner and evaluator (#4216) 2022-04-05 06:25:23 +00:00
OJ Kwon
4093814895
chore(build): Dedup swc_common (#4247) 2022-04-05 14:28:07 +09:00