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
SWC Bot
c4a7f21a71
chore: Publish crates
2022-09-28 01:58:17 +00:00
OJ Kwon
ca38a7027e
test(es/plugin): Reenable compat test ( #5969 )
2022-09-28 10:54:51 +09:00
SWC Bot
f655488cfa
chore: Publish crates
2022-09-27 13:57:39 +00:00
Finn Böger
1f892cd979
fix(es/compat): Fix unrolling of arrays in generator
( #5965 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5951 .
2022-09-27 13:53:51 +00:00
SWC Bot
a5918422bf
chore: Publish crates
2022-09-27 11:52:21 +00:00
Donny/강동윤
e410102633
fix(es/compat): Fix the order of initialization for decorators on computed keys ( #5964 )
2022-09-27 11:48:42 +00:00
SWC Bot
3eecf954b3
chore: Publish crates
2022-09-27 08:41:58 +00:00
Donny/강동윤
0fb2c1d5a5
fix(es/minifier): Fix analysis of nested function-like properties ( #5963 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5950 .
2022-09-27 08:38:14 +00:00
SWC Bot
cf474a3eac
chore: Publish crates
2022-09-27 07:54:26 +00:00
Donny/강동윤
dcd516d2bd
feat(es/minifier): Ignore more expressions in sequential inliner ( #5961 )
...
**Description:**
We can skip **member access** to `console` as it does not have any side effects.
2022-09-27 07:45:44 +00:00
SWC Bot
301f99023c
chore: Publish crates
2022-09-27 06:22:51 +00:00
Donny/강동윤
48cddc16f6
test(es/minifier): Categorize terser tests ( #5960 )
...
**Description:**
I'm going to focus on rules enabled by default. I updated some tests because our one was better, and postponed `unsafe` tests.
2022-09-27 15:18:57 +09:00
SWC Bot
1682095813
chore: Publish crates
2022-09-27 05:54:04 +00:00
Austaras
573418fc96
fix(es/resolver): Use a separate mark for the name of FnExpr
( #5959 )
2022-09-27 14:50:35 +09:00
SWC Bot
3d393dd709
chore: Publish crates
2022-09-27 03:22:48 +00:00
Donny/강동윤
33a15c8d82
fix(es/minifier): Fix analysis of parameters ( #5954 )
...
**Description:**
Although the author of the issue talked about `@react-pdf/renderer`, it's a bug related to `brotli`, not react pdf renderer.
After investigation, I found that the bug is caused by not marking parameters as initialized. So I fixed the analyzer.
**Related issue:**
- https://github.com/vercel/next.js/issues/40803 .
2022-09-27 12:19:36 +09:00
SWC Bot
132a9380df
chore: Publish crates
2022-09-26 15:12:03 +00:00
Donny/강동윤
9d1974248d
fix(es/minifier): Fix skipping logic of sequential inliner ( #5956 )
...
**Description:**
This PR implements `is_skippable_for_seq` fully.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5935 .
2022-09-26 15:05:52 +00:00
Donny/강동윤
d0e2e3c43b
fix(es/testing): Remove cycle
2022-09-26 18:25:05 +09:00
SWC Bot
e001226674
chore: Publish crates
2022-09-26 09:21:39 +00:00
Donny/강동윤
2ba88154fc
fix(es/codegen): Align sourcemap with terser ( #5657 )
2022-09-26 18:12:42 +09:00