Commit Graph

8992 Commits

Author SHA1 Message Date
Donny/강동윤
6ab19a1b5f
perf(es/parser): Optimize lexing of template literals (#9036)
**Description:**

We don't need to push one char at a time.
2024-06-11 21:20:00 +09:00
SWC Bot
6400140999 chore: Bump crates 2024-06-11 11:22:41 +00:00
Donny/강동윤
cb16994a8d
fix(es/minifier): Visit RHS while hoisting properties (#9032)
**Description:**

Handles 

```js
var FRUITS = { MANGO: "mango" }, getMangoLabel = (label) => label[FRUITS.MANGO];
```

while hoisting properties. In the code above, the initializer of the second variable declarator should be visited after hoisting the first variable declarator. Otherwise `FRUITS.MANGO` cannot be handled.


**Related issue:**

 - Closes #9030
2024-06-11 20:20:39 +09:00
SWC Bot
328cb4b248 chore: Publish 1.5.29-nightly-20240611.1 2024-06-11 08:32:31 +00:00
SWC Bot
0a7aa10706 chore: Bump crates 2024-06-11 07:15:38 +00:00
Donny/강동윤
39654bf1e7
fix(es): Make output field optional (#9033) 2024-06-11 07:14:01 +00:00
강동윤 (Donny)
93c16422c3 chore: Update changelog 2024-06-11 15:03:59 +09:00
강동윤 (Donny)
e06198552c chore: Publish 1.5.28 with swc_core v0.93.2 2024-06-11 15:03:56 +09:00
SWC Bot
b31927cb66 chore: Bump crates 2024-06-11 06:01:25 +00:00
Donny/강동윤
6669343b4a
fix(es/minifier): Fix typescript enum detection (#9031)
**Description:**

This reverts commit cc8c1550dd because it caused a regression in the next.js canary.

 - Canary version: `15.0.0-canary.12`


**Related issue:**

 - Reverts #8986
2024-06-11 14:59:42 +09:00
SWC Bot
2133903e8f chore: Publish 1.5.28-nightly-20240611.1 2024-06-11 00:06:15 +00:00
강동윤 (Donny)
abcf21dfc2 chore: Update changelog 2024-06-10 14:16:44 +09:00
강동윤 (Donny)
4d00b671f6 chore: Publish 1.5.27 with swc_core v0.93.1 2024-06-10 14:16:42 +09:00
강동윤 (Donny)
e23af00a8c chore(ci): Disable testing on node@20 2024-06-10 14:16:10 +09:00
강동윤 (Donny)
b952b084bf chore: Update changelog 2024-06-10 12:17:00 +09:00
강동윤 (Donny)
3f7820a3a1 chore: Publish 1.5.26 with swc_core v0.93.1 2024-06-10 12:16:58 +09:00
SWC Bot
22c00c7776 chore: Publish 1.5.26-nightly-20240610.1 2024-06-10 02:36:01 +00:00
SWC Bot
206b1e9b02 chore: Bump crates 2024-06-10 02:31:08 +00:00
Donny/강동윤
54ac992781
feat(es/renamer): Workaround a bug of Safari (#9029)
**Related issue:**

 - Closes #9015
2024-06-10 11:29:24 +09:00
SWC Bot
d4ab0acbe2 chore: Publish 1.5.26-nightly-20240607.1 2024-06-07 12:10:53 +00:00
SWC Bot
98540a588b chore: Bump crates 2024-06-07 12:02:11 +00:00
Donny/강동윤
825749f440
feat(es): Integrate experimental data API (#9027) 2024-06-07 21:00:26 +09:00
SWC Bot
f1ca6a7906 chore: Bump crates 2024-06-07 07:18:53 +00:00
Donny/강동윤
cada50b017
feat(es/minifier): Support module: "unknown" (#9026)
**Related issue:**

 - Closes #8571
2024-06-07 07:17:05 +00:00
강동윤 (Donny)
2e22b5dc4f chore: Fix nightly of xtask 2024-06-07 11:17:20 +09:00
SWC Bot
1b174dfac5 chore: Publish 1.5.11-nightly-20240606.1 2024-06-06 00:08:15 +00:00
SWC Bot
81ec70419b chore: Bump crates 2024-06-05 10:39:06 +00:00
Donny/강동윤
6ce112cfeb
feat(es/transforms): Add an API for returning metadata to JS (#9022) 2024-06-05 10:37:28 +00:00
강동윤 (Donny)
2b81d72333 chore: Workaround the bug of cargo-mono 2024-06-05 15:46:04 +09:00
Donny/강동윤
6fa79be081
feat(es/transforms): Add experimental output API for transforms (#9000)
**Description:**

This interface will provide a way to emit some outputs from transforms. This data will be emitted back to the JS caller.
2024-06-05 15:38:28 +09:00
SWC Bot
668a11d50d chore: Bump crates 2024-06-05 06:32:40 +00:00
huajingyun
7f08b03231
chore: Bump libc crate (#9001) 2024-06-05 06:31:01 +00:00
SWC Bot
03edd92dc8 chore: Bump crates 2024-06-05 06:07:36 +00:00
Donny/강동윤
555e71cfd5
fix(es/es2015): Remove needless unreachable! (#9021)
**Related issue:**

 - Closes #9020
2024-06-05 06:05:22 +00:00
강동윤 (Donny)
e3dfa8707a chore: Update changelog 2024-06-05 10:22:53 +09:00
강동윤 (Donny)
8bb302a508 chore: Publish 1.5.25 with swc_core v0.92.10 2024-06-05 10:22:50 +09:00
SWC Bot
277843e2e9 chore: Bump crates 2024-06-04 09:53:19 +00:00
Donny/강동윤
3bf31148ba
perf(es/parser): Add feature named tracing-spans (#9019) 2024-06-04 18:51:25 +09:00
강동윤 (Donny)
2fb890cf20 chore: Publish crates 2024-06-04 09:09:39 +09:00
SWC Bot
1496ed1814 chore: Bump crates 2024-06-02 10:34:24 +00:00
Donny/강동윤
9f8e24a76c
fix(es/minifier): Fix evaluation of -0 as a string (#9011)
**Related issue:**

 - Closes #9010

---------

Co-authored-by: magic-akari <akari.ccino@gmail.com>
2024-06-02 19:32:44 +09:00
SWC Bot
1f911f9d19 chore: Bump crates 2024-06-02 03:37:22 +00:00
Donny/강동윤
2879a4d42b
fix(es/minifier): Do not index a string with a surrogate pair (#9013)
**Related issue:**

 - Closes #9008
2024-06-02 03:35:43 +00:00
SWC Bot
04c183933a chore: Bump crates 2024-06-02 03:12:32 +00:00
Donny/강동윤
8a29577cc5
fix(es/minifier): Fix comparison of -0.0 (#9012)
**Related issue:**

 - Closes #9007
2024-06-02 03:10:55 +00:00
SWC Bot
d44ec65e36 chore: Bump crates 2024-06-01 14:20:10 +00:00
Donny/강동윤
0d9ecf39c1
fix(es/resolver): Fix hoisting of const and let (#8987)
**Description:**

 - Repro: https://github.com/kdy1/repro-next-66237

**Related issue:**

 - https://github.com/vercel/next.js/issues/66237
2024-06-01 23:18:34 +09:00
SWC Bot
774f3608d2 chore: Publish 1.5.11-nightly-20240601.1 2024-06-01 00:07:27 +00:00
SWC Bot
629d59cb18 chore: Bump crates 2024-05-31 03:15:29 +00:00
Donny/강동윤
e764ff6f64
fix(es/minifier): Preserve unused special properties (#9005)
**Related issue:**

 - https://github.com/vercel/next.js/issues/66378
2024-05-31 03:13:43 +00:00