Commit Graph

5700 Commits

Author SHA1 Message Date
SWC Bot
2f626e95eb chore: Publish crates 2022-09-30 07:16:28 +00:00
Donny/강동윤
8b31b65059
fix(es/codegen): Improve performance of debug build (#6003) 2022-09-30 16:12:56 +09:00
OJ Kwon
3204ac3e0c
build(cargo): Use workspace deps for internal pkg (#6001) 2022-09-30 15:48:23 +09:00
SWC Bot
b2da9f6c8f chore: Publish crates 2022-09-30 05:33:21 +00:00
Alexander Akait
35da76241d
feat(html/codegen): Add an option to keep quotes while minifying (#5996) 2022-09-30 05:29:58 +00:00
SWC Bot
3f23de8b86 chore: Publish crates 2022-09-30 04:47:02 +00:00
OJ Kwon
af64217f19
build(cargo): Introduce workspace deps (#5997) 2022-09-30 13:43:32 +09:00
Donny/강동윤
fbc09d0cba
chore: Publish v1.3.4 (#5998) 2022-09-30 12:47:00 +09:00
SWC Bot
ff7da14184 chore: Publish crates 2022-09-30 02:15:49 +00:00
Alexander Akait
a716b40d05
chore(html/minifier): Typo (#5995) 2022-09-30 02:11:47 +00:00
SWC Bot
447e2449d9 chore: Publish crates 2022-09-29 11:06:36 +00:00
Donny/강동윤
aeb7f300a8
feat(es/minifier): Invoke sequential inliner for inlined IIFEs (#5991)
**Description:**

Inlined IIFEs have the exact pattern sequential inliner wants, so it's good to invoke it.
2022-09-29 11:03:06 +00:00
SWC Bot
da7ced9de1 chore: Publish crates 2022-09-29 10:20:18 +00:00
Donny/강동윤
f8358fbe2b
fix(es/minifier): Remove wrong variable joiner pass (#5992)
**Description:**

We had two passes for joining variables. This PR removes one in the full optimizer, which is wrong.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5989.
2022-09-29 19:11:18 +09:00
Donny/강동윤
48b83fb69d chore: Publish crates 2022-09-29 15:50:48 +09:00
Donny/강동윤
af8236d689 fix(es/minifier): Remove print 2022-09-29 15:50:21 +09:00
SWC Bot
f86ff4fa7c chore: Publish crates 2022-09-29 05:19:48 +00:00
Austaras
1a11cfd46f
feat(es/minifier): Improve fn-local analysis for better inlining (#5955) 2022-09-29 14:16:28 +09:00
SWC Bot
783c9dcc23 chore: Publish crates 2022-09-29 03:01:40 +00:00
Alexander Akait
6c08971a53
perf(html/minifier): Improve performance (#5983) 2022-09-29 02:58:09 +00:00
SWC Bot
18123fb7b0 chore: Publish crates 2022-09-29 02:19:57 +00:00
Donny/강동윤
c411e5d552
feat(es/minifier): Drop more variables while invoking IIFE (#5987) 2022-09-29 02:15:56 +00:00
SWC Bot
c2d8c99411 chore: Publish crates 2022-09-29 01:39:48 +00:00
Alexander Akait
b3a05a057a
feat(css/codegen): Minify idents (#5972) 2022-09-29 01:35:33 +00:00
SWC Bot
f2e56d9210 chore: Publish crates 2022-09-29 00:45:22 +00:00
Donny/강동윤
0cfc724018
test(es/minifier): Add tests for benchmark files (#5986) 2022-09-29 09:41:13 +09:00
SWC Bot
189f9b482f chore: Publish crates 2022-09-29 00:08:42 +00:00
Donny/강동윤
0067f719dd
fix(es/minifier): Don't panic on jsx or ts (#5984) 2022-09-29 00:05:13 +00:00
SWC Bot
c499e2054d chore: Publish crates 2022-09-28 22:57:51 +00:00
Alexander Akait
7d7c2d3a9c
perf(css/minifier): Merge all passes (#5971) 2022-09-28 22:54:08 +00:00
SWC Bot
57ef438d9b chore: Publish crates 2022-09-28 14:23:58 +00:00
Donny/강동윤
08f6e81d8e
feat(es/minifier): Ignore more return values (#5981) 2022-09-28 14:20:37 +00:00
SWC Bot
1c9870a744 chore: Publish crates 2022-09-28 13:44:08 +00:00
Donny/강동윤
bc2c0f4133
fix(es/codegen): Fix codegen of a negative number (#5980)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5912.
2022-09-28 13:40:07 +00:00
SWC Bot
a3d8e4c8bc chore: Publish crates 2022-09-28 12:40:16 +00:00
Donny/강동윤
8c4873f81e
test(es/minifier): Remove mangle-only snapshots (#5979)
**Description:**

We don't have to store snapshots of all fixtures.
2022-09-28 21:35:52 +09:00
SWC Bot
883bd1f642 chore: Publish crates 2022-09-28 12:10:32 +00:00
Donny/강동윤
f7128d20f0
chore(ci): Fix benchmark action (#5978) 2022-09-28 21:06:43 +09:00
SWC Bot
d75addbdec chore: Publish crates 2022-09-28 10:37:40 +00:00
Donny/강동윤
19131e168e
perf(es): Don't share Globals (#5975)
**Description:**

We don't need to share an instance of `Globals`.
2022-09-28 10:34:30 +00:00
SWC Bot
7c2d6a9f67 chore: Publish crates 2022-09-28 09:23:36 +00:00
Donny/강동윤
e37bb55101
perf(es/minifier): Optimize MultiReplacer (#5977)
**Description:**

This PR splits the `MultiReplacer` into two variants. The first one is the cloning version, and this is parallel. The other one is the non-cloning version, which is not parallel.
2022-09-28 09:19:30 +00:00
SWC Bot
c23c07fc50 chore: Publish crates 2022-09-28 08:16:52 +00:00
Donny/강동윤
0e69890764
feat(es/minifier): Evaluate more literals in comparison (#5976)
**Description:**

I'll fix the performance issue with a follow-up PR.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/4415.
2022-09-28 08:07:55 +00:00
SWC Bot
8a4fefd12a chore: Publish crates 2022-09-28 06:44:08 +00:00
Donny/강동윤
8066d8f60e
chore(es/transforms): Setup parallel benchmark (#5974) 2022-09-28 06:40:31 +00:00
SWC Bot
b5be765a87 chore: Publish crates 2022-09-28 05:39:30 +00:00
Austaras
aff4ea5f44
fix(es/minifier): Preserve exports in DCE (#5973) 2022-09-28 05:35:51 +00:00
SWC Bot
cc312eca50 chore: Publish crates 2022-09-28 02:58:55 +00:00
Alexander Akait
dfdad69c03
feat(css/minifier): Remove duplicate @counter-style at-rules (#5970) 2022-09-28 02:55:17 +00:00