SWC Bot
a8bd170634
chore: Publish crates
2023-11-20 22:19:11 +00:00
SWC Bot
38c489c26c
chore: Publish crates
2023-11-20 21:59:52 +00:00
SWC Bot
5fa2ed4bfd
chore: Publish crates
2023-11-20 06:22:03 +00:00
SWC Bot
af8c1d33f5
chore: Publish crates
2023-11-20 04:30:06 +00:00
SWC Bot
2cd893fb8a
chore: Publish crates
2023-11-19 15:13:56 +00:00
Austaras
572ad63e08
fix(es/minifier): Apply new SyntaxContext
to inlined Arrow
correctly ( #8312 )
2023-11-20 00:11:38 +09:00
Donny/강동윤
a0048427dd
test(es/minifier): Update test refs ( #8310 )
2023-11-19 19:16:38 +09:00
SWC Bot
2b368f6731
chore: Publish crates
2023-11-19 06:35:42 +00:00
SWC Bot
f38ad1eeef
chore: Publish crates
2023-11-18 00:03:24 +00:00
Austaras
c18a959e3a
fix(es/minifier): Apply new SyntaxContext
to inlined Arrow
( #8301 )
...
**Related issue:**
- Closes #8288
2023-11-18 09:01:27 +09:00
SWC Bot
2a2b5ee5b1
chore: Publish crates
2023-11-16 08:52:11 +00:00
SWC Bot
9e8fe38d31
chore: Publish crates
2023-11-16 02:03:19 +00:00
SWC Bot
c566b73bfb
chore: Publish crates
2023-11-16 00:20:22 +00:00
Donny/강동윤
7985e02fc8
fix(es/minifier): Remove hack for built-in class names ( #8293 )
...
**Description:**
Regarding https://github.com/vercel/next.js/issues/55682 , I made a mistake while investigating. I assumed it's `swcMinify`-only but it seems like `node-fetch` is fundamentally incompatible with our minification options.
I thought `node-fetch` works with terser, but it did not, and it **should not**. But as I thought `terser` works, I assumed that `terser` has a hack for `AbortSignal`. And that's how I fixed `swcMinify: true`. The correct fix is `keep_classnames: true` but it will result in +~10% bundle size bloat.
At first, I used the correct way (`keep_classnames: true`), but it resulted in the bundle size bloat, so I mimicked the hack of terser with https://github.com/vercel/next.js/pull/57904 .
While working on other minification issues, I found that there's no such hack in `terser` and I need to remove the hack in the SWC minifier.
The repro in https://github.com/vercel/next.js/issues/55682 does not work with `swcMinify: false`, even with next@14. The problem of minifier and node-fetch was not exploited before `serverMinification: true`.
**Related issue:**
- https://github.com/brix/crypto-js/issues/415
2023-11-16 09:17:42 +09:00
SWC Bot
666c843e7e
chore: Publish crates
2023-11-15 23:38:46 +00:00
SWC Bot
c03f84e54e
chore: Publish crates
2023-11-15 22:45:18 +00:00
SWC Bot
99617848ef
chore: Publish crates
2023-11-15 22:04:42 +00:00
SWC Bot
3bbd340205
chore: Publish crates
2023-11-15 01:09:49 +00:00
Austaras
73fec945b5
fix(es/minifier): Make Finalizer
inline literals ( #8285 )
...
**Related issue:**
- Closes #8284
2023-11-15 01:07:37 +00:00
SWC Bot
f86c12b0b4
chore: Publish crates
2023-11-14 21:39:03 +00:00
bohan
f059270348
feat(es/minifier): Support format.inline_script
( #8252 )
2023-11-14 21:37:05 +00:00
SWC Bot
5fed604276
chore: Publish crates
2023-11-14 20:02:17 +00:00
Donny/강동윤
1ccfc0762c
fix(es/minifier): Respect pure_funcs
for tagged tpls ( #8280 )
...
**Related issue:**
- Closes #8275 .
2023-11-14 19:59:15 +00:00
SWC Bot
2f6af92232
chore: Publish crates
2023-11-14 16:47:24 +00:00
Austaras
65c3d0e3f4
feat(es/minifier): Swap bin expr to save paren ( #8277 )
2023-11-14 16:45:24 +00:00
SWC Bot
aa36a53c42
chore: Publish crates
2023-11-14 16:01:17 +00:00
Austaras
20fb5bab32
fix(es/minifier): Keep class with a static block ( #8283 )
...
**Related issue:**
- Closes #8271 .
2023-11-15 00:59:14 +09:00
SWC Bot
9c438692c6
chore: Publish crates
2023-11-13 10:03:57 +00:00
SWC Bot
35b95ae430
chore: Publish crates
2023-11-13 03:50:20 +00:00
Austaras
ebcd825225
fix(es/minifier): Enable seq inliner for const declarations ( #8255 )
2023-11-13 03:47:49 +00:00
SWC Bot
07cc635489
chore: Publish crates
2023-11-11 19:12:50 +00:00
Donny/강동윤
9a0572b968
refactor(swc_node_base): Rename to swc_malloc
( #8272 )
...
**Description:**
This is quite convinient.
2023-11-11 19:10:56 +00:00
SWC Bot
2ef3de0021
chore: Publish crates
2023-11-10 13:10:36 +00:00
SWC Bot
6383ac443d
chore: Publish crates
2023-11-10 12:34:31 +00:00
SWC Bot
e0525b595e
chore: Publish crates
2023-11-10 02:30:21 +00:00
SWC Bot
ac80d7a93c
chore: Publish crates
2023-11-10 00:33:30 +00:00
Donny/강동윤
0faa2c4a01
fix(es/codegen): Check for trailing comments while emitting an arrow ( #8257 )
...
**Description:**
This PR also **fixes** the `Default` implementation of `JsMinifyFormatOptions`. It didn't matched the default value when it's used with `serde::Deserialize`.
**Related issue:**
- Closes #8251
2023-11-10 00:30:28 +00:00
SWC Bot
cb44d3fc33
chore: Publish crates
2023-11-09 12:01:47 +00:00
Donny/강동윤
be748f0f33
fix(es/minifier): Use cooked
while converting tpls into strings ( #8248 )
...
**Related issue:**
- Closes #8228
2023-11-09 11:59:42 +00:00
SWC Bot
2d2ad1e9a1
chore: Publish crates
2023-11-09 03:48:08 +00:00
SWC Bot
2effaf6f43
chore: Publish crates
2023-11-09 01:01:47 +00:00
SWC Bot
4c2547adf2
chore: Publish crates
2023-11-07 09:55:14 +00:00
SWC Bot
a072819859
chore: Publish crates
2023-11-07 08:55:03 +00:00
SWC Bot
09b3003e58
chore: Publish crates
2023-11-07 00:54:18 +00:00
SWC Bot
86e83335eb
chore: Publish crates
2023-11-06 10:47:53 +00:00
SWC Bot
f00238d543
chore: Publish crates
2023-11-06 10:00:55 +00:00
SWC Bot
b070ffe425
chore: Publish crates
2023-11-06 05:31:11 +00:00
SWC Bot
1f3726dc64
chore: Publish crates
2023-11-06 04:49:46 +00:00
Donny/강동윤
b745ed7ac8
perf(es/minifier): Remove needless operations for char freq analysis ( #8222 )
...
**Description:**
This skips a string search operation, which is quite costly, without affecting the output.
2023-11-06 13:46:43 +09:00
SWC Bot
48e5c9ad54
chore: Publish crates
2023-11-06 04:18:48 +00:00
SWC Bot
edb46c3c71
chore: Publish crates
2023-11-04 21:49:01 +00:00
Donny/강동윤
14ea705f27
build(cargo): Update rustc to nightly-2023-11-04
( #8221 )
...
**Breaking Changes**:
- `Mark::default()` is now identical as `Mark::new()`.
**Description:**
I want to see if inlining is improved
2023-11-04 21:47:10 +00:00
SWC Bot
71448552e5
chore: Publish crates
2023-11-04 04:19:10 +00:00
Donny/강동윤
1a26be2a27
feat(es/codegen): Respect ascii_only: false
for StrLit
( #8217 )
...
**Related issue:**
- Closes #8189
2023-11-04 04:15:58 +00:00
SWC Bot
34e7c32085
chore: Publish crates
2023-11-04 02:16:21 +00:00
SWC Bot
4594a7bea4
chore: Publish crates
2023-11-04 01:37:57 +00:00
SWC Bot
5bdd8fd9e7
chore: Publish crates
2023-11-02 23:31:51 +00:00
SWC Bot
2b35e6c159
chore: Publish crates
2023-11-02 22:20:35 +00:00
SWC Bot
407aa63cea
chore: Publish crates
2023-11-02 21:40:11 +00:00
SWC Bot
f721814fea
chore: Publish crates
2023-11-02 03:32:27 +00:00
SWC Bot
e87a45bd67
chore: Publish crates
2023-11-02 00:02:22 +00:00
Donny/강동윤
dd805e95a4
feat(es/minifier): Respect inline level and preserve native names ( #8205 )
...
**Description:**
Note: Preserving native names is a hack, but it's used by `terser` and it's the only way to preserve the name of `class AbortSignal` while mangling without `keep_classnames: true`. We can special case `AbortSignal`, but let's just follow `terser`.
**Related issue:**
- https://github.com/vercel/next.js/pull/57904
2023-11-02 08:59:59 +09:00
SWC Bot
d3ce0f1245
chore: Publish crates
2023-11-01 13:46:52 +00:00
SWC Bot
7cfa3213fb
chore: Publish crates
2023-10-30 05:11:33 +00:00
SWC Bot
b77d99d4b8
chore: Publish crates
2023-10-30 01:41:47 +00:00
SWC Bot
a78b486d76
chore: Publish crates
2023-10-29 22:28:09 +00:00
강동윤 (Donny)
b74ef5a807
chore: Publish crates
2023-10-27 22:23:14 -07:00
SWC Bot
352208548d
chore: Publish crates
2023-10-27 18:18:40 +00:00
Austaras
bb02cdd26e
refactor(es/minifier): Simplify analyzer context ( #8164 )
2023-10-27 18:16:00 +00:00
SWC Bot
67b0a7f258
chore: Publish crates
2023-10-25 23:01:44 +00:00
Donny/강동윤
7530e9051d
perf(es/minifier): Add has_flag
to Comments
( #8182 )
2023-10-25 22:59:03 +00:00
SWC Bot
19ccd66d89
chore: Publish crates
2023-10-24 00:04:34 +00:00
SWC Bot
5450f5808a
chore: Publish crates
2023-10-23 22:03:16 +00:00
Donny/강동윤
9ceb57b4c7
fix(es/compat): Don't add pure annotations to dummy spans ( #8172 )
...
**Related issue:**
- Closes #8155 .
- Closes #8173 .
2023-10-23 15:00:35 -07:00
SWC Bot
7747dbd499
chore: Publish crates
2023-10-23 21:26:12 +00:00
Austaras
c26a2252b6
fix(es/minifier): Always consider reassigned
when inlining ( #8168 )
...
**Related issue:**
- Closes #8161 .
2023-10-23 21:23:29 +00:00
SWC Bot
76ba2434de
chore: Publish crates
2023-10-23 20:42:56 +00:00
SWC Bot
366d9eb514
chore: Publish crates
2023-10-20 21:35:19 +00:00
SWC Bot
6f9c6424d7
chore: Publish crates
2023-10-20 13:33:17 +00:00
SWC Bot
b806f925f1
chore: Publish crates
2023-10-20 06:09:49 +00:00
SWC Bot
4a1a233db8
chore: Publish crates
2023-10-19 21:08:38 +00:00
Donny/강동윤
8a461b8957
feat(es/minifier): Drop empty static blocks ( #8152 )
...
**Related issue:**
- Closes #8136
2023-10-19 21:06:12 +00:00
SWC Bot
64bddc110e
chore: Publish crates
2023-10-19 20:24:12 +00:00
Donny/강동윤
35601e4dcb
fix(es/minifier): Abort function inliner if keep_fnames
is true
( #8145 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/56408
2023-10-19 20:20:54 +00:00
SWC Bot
9e71134b3c
chore: Publish crates
2023-10-19 19:40:19 +00:00
Austaras
13106e0d2e
refactor(es/minifier): Decouple assign_count
from reassigned
( #8137 )
2023-10-19 19:37:37 +00:00
SWC Bot
0b6f2b4fe9
chore: Publish crates
2023-10-18 18:00:42 +00:00
SWC Bot
34b01672ad
chore: Publish crates
2023-10-18 04:24:27 +00:00
SWC Bot
5bb63aa2a2
chore: Publish crates
2023-10-18 03:47:26 +00:00
Donny/강동윤
111de264b0
fix(es/minifier): Abort seq inliner if b
can short-circuit ( #8128 )
...
**Related issue:**
- Closes #8119
2023-10-18 03:44:36 +00:00
SWC Bot
736831cb68
chore: Publish crates
2023-10-18 03:10:04 +00:00
Austaras
4f67794223
feat(es/minifier): Inline into the arguments of new
using seq inliner ( #8127 )
2023-10-18 03:07:14 +00:00
SWC Bot
9b27a41b76
chore: Publish crates
2023-10-16 20:41:20 +00:00
SWC Bot
f81ca2c795
chore: Publish crates
2023-10-15 10:27:05 +00:00
SWC Bot
3bca931560
chore: Publish crates
2023-10-15 08:25:08 +00:00
SWC Bot
06a2b44499
chore: Publish crates
2023-10-13 06:10:04 +00:00
magic-akari
7da3f52485
feat(es/minifier): Evaluate more toFixed
expressions ( #8109 )
2023-10-13 15:07:00 +09:00
SWC Bot
a1d7ea7899
chore: Publish crates
2023-10-13 02:52:46 +00:00
SWC Bot
1364c568e1
chore: Publish crates
2023-10-12 00:42:04 +00:00
Donny/강동윤
94bb42e294
fix(es/minifier): Don't inline functions if keep_fnames
is enabled ( #8093 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/56550
2023-10-12 00:39:19 +00:00