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
a18ffc107f
chore: Publish crates
2023-10-19 17:13:59 +00:00
pshu
8d7894c71f
fix(css/ast): Make .hash()
of Token
not recursive ( #8151 )
2023-10-19 17:10:48 +00:00
SWC Bot
0b6f2b4fe9
chore: Publish crates
2023-10-18 18:00:42 +00:00
magic-akari
e186b80ddc
feat(es/compat): Skip empty class static blocks ( #8138 )
...
**Description:**
And update the `static_block_private_id` generate rules to be consistent with Babel.
**Related issue:**
- #8136
2023-10-18 17:58:02 +00:00
SWC Bot
34b01672ad
chore: Publish crates
2023-10-18 04:24:27 +00:00
David Sherret
bffe33a270
feat(es/parser): Implement AsRef<str>
for IdentLike
( #8133 )
2023-10-18 04:22:03 +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
dc337d59f1
chore: Publish crates
2023-10-16 22:11:45 +00:00
SWC Bot
9b27a41b76
chore: Publish crates
2023-10-16 20:41:20 +00:00
Alessandro Chitolina
9c029ef095
feat(es/compat): Implement decorator metadata proposal ( #8097 )
...
**Description:**
This PR implements the [decorator
metadata](https://github.com/tc39/proposal-decorator-metadata ) proposal,
that is now at Stage 3.
As the decorator metadata proposal is a small extension of the decorator
proposal and is not possible to compile the metadata without transpiling
decorators, I opted to implement it into the existing decorator
transformer (and helper)
**Related issue:**
- Closes #7957
2023-10-16 20:38:53 +00:00
SWC Bot
f81ca2c795
chore: Publish crates
2023-10-15 10:27:05 +00:00
magic-akari
fb81a36adc
fix(es/utils): Skip var declarator name in RefRewriter
( #8125 )
...
**Related issue:**
- Closes #8124
2023-10-15 10:24:40 +00:00
SWC Bot
3bca931560
chore: Publish crates
2023-10-15 08:25:08 +00:00
David Sherret
57b171dcbe
feat(es/typescript): Add ts_enum_is_mutable
to disable enum inlining ( #8115 )
...
**Related issue:**
- Closes #8114 .
2023-10-15 08:22:47 +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
강동윤 (Donny)
787a465d8d
chore: Publish crates
2023-10-13 12:28:41 +09:00
SWC Bot
a1d7ea7899
chore: Publish crates
2023-10-13 02:52:46 +00:00
Donny/강동윤
affb6fb5e3
refactor(es/compat): Split swc_ecma_transforms_compat
( #8110 )
...
**Description:**
- New: `cargo build --release 478.59s user 19.16s system 814% cpu 1:01.09 total`
- Prev: `cargo build --release 495.60s user 18.89s system 742% cpu 1:09.26 total`
2023-10-12 10:08:00 +00:00
SWC Bot
04932acc02
chore: Publish crates
2023-10-12 04:06:44 +00:00
Donny/강동윤
95eb147742
refactor(es/preset-env): Rename parameter to avoid confusion ( #8106 )
...
**Related issue:**
- Closes #8103
2023-10-12 04:04:10 +00:00
SWC Bot
1bb2491368
chore: Publish crates
2023-10-12 03:28:23 +00:00
Donny/강동윤
fe0bf5746f
chore(ci): Fix CI action ( #8107 )
2023-10-12 03:26:04 +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
SWC Bot
6828fdbee5
chore: Publish crates
2023-10-11 22:50:49 +00:00
SWC Bot
a25fff5c46
chore: Publish crates
2023-10-11 18:35:43 +00:00
Donny/강동윤
cb4361f293
fix(es/decorators): Fix a regression about class expressions ( #8102 )
...
**Related issue:**
- Closes #8095
2023-10-11 16:45:21 +00:00
SWC Bot
1183c32e3c
chore: Publish crates
2023-10-11 14:05:36 +00:00
Donny/강동윤
e1043fae77
fix(es/parser): Fix parsing of await using
( #8101 )
...
**Related issue:**
- Closes #8096
2023-10-11 14:03:08 +00:00
SWC Bot
17fe7b29c5
chore: Publish crates
2023-10-11 12:44:18 +00:00
Donny/강동윤
226b17fa86
chore(ci): Remove unused concurrency tests ( #8100 )
2023-10-11 21:40:49 +09:00
SWC Bot
8a07681f78
chore: Publish crates
2023-10-11 12:26:14 +00:00
magic-akari
bf523f5351
fix(es/compat): Handle export default decorator only if not empty ( #8099 )
...
**Related issue:**
- Closes : #8098
2023-10-11 12:24:22 +00:00
SWC Bot
3dc761ab47
chore: Publish crates
2023-10-11 05:23:36 +00:00
SWC Bot
77d34014c7
chore: Publish crates
2023-10-10 14:21:09 +00:00
Donny/강동윤
a2d077958f
chore(es/minifier): Fix script for extracting test cases from next.js app ( #8092 )
2023-10-10 23:18:39 +09:00
SWC Bot
7e4b2490e8
chore: Publish crates
2023-10-10 11:44:33 +00:00
Donny/강동윤
d1097ccb59
feat(css/parser): Store lexed comments ( #8091 )
...
**Description:**
For now, we leave every comment as a leading comment. As logic for determining leading vs trailing is quite complex, I'll do it with another PR.
2023-10-10 11:42:20 +00:00
SWC Bot
4453d1b0a8
chore: Publish crates
2023-10-10 06:49:24 +00:00
SWC Bot
f44205bd57
chore: Publish crates
2023-10-10 04:10:33 +00:00
magic-akari
a912937cea
fix(es/compat): Handle __proto__
edge case in shorthand
pass ( #8077 )
...
**Related issue:**
- https://github.com/babel/babel/pull/12664
2023-10-10 04:08:45 +00:00