Commit Graph

1705 Commits

Author SHA1 Message Date
SWC Bot
4e860c988d chore: Publish crates 2024-01-04 04:49:50 +00:00
SWC Bot
8997ed1547 chore: Publish crates 2024-01-04 04:25:54 +00:00
Austaras
82bd8070cb
fix(es/resolver): Resolve top-level undefined, NaN, and Infinity correctly (#8471)
**Description:**

For following code
```js
var NaN = 1
console.log(NaN)
```
Result would be

|Envirnoment|Result|
|-|-|
|Non strict script(browser, nodejs repl)|NaN|
|Non strict script(nodejs script)|1|
|Strict script(browser, nodejs repl)|runtime error|
|Strict script(nodejs script)|1|
|ESM|1|

So SWC choose to behave like browser in script mode and confirm to esm
standard.


**Related issue:**

 - Closes #8465
2024-01-04 04:24:14 +00:00
SWC Bot
68b9646681 chore: Publish crates 2024-01-03 20:18:10 +00:00
SWC Bot
f2ede40e38 chore: Publish crates 2024-01-03 06:58:23 +00:00
SWC Bot
cddb0165bb chore: Publish crates 2024-01-03 05:41:28 +00:00
SWC Bot
a4e91af934 chore: Publish crates 2024-01-03 04:45:13 +00:00
Austaras
b676e75cdd
test(es/minifier): Enable script mode for terser_exec and mangle (#8474) 2024-01-02 06:00:26 +00:00
Austaras
1120336f23
test(es/minifier): Enable non esm mode for tests (#8472) 2024-01-02 04:33:39 +00:00
SWC Bot
98920ca78d chore: Publish crates 2024-01-02 02:10:29 +00:00
SWC Bot
e3f25c2011 chore: Publish crates 2023-12-29 12:26:47 +00:00
SWC Bot
4229e7b99b chore: Publish crates 2023-12-29 08:49:51 +00:00
SWC Bot
3492e6f13e chore: Publish crates 2023-12-28 23:58:04 +00:00
Austaras
1e44e57a09
fix(es/renamer): Correctly check top level (#8456)
**Related issue:**

 - Closes #8451.
 - Closes #8185.
2023-12-28 23:56:38 +00:00
SWC Bot
d6dd1f9240 chore: Publish crates 2023-12-24 01:32:20 +00:00
SWC Bot
611d7175d4 chore: Publish crates 2023-12-22 03:27:18 +00:00
SWC Bot
37bb0e3bde chore: Publish crates 2023-12-21 09:19:08 +00:00
SWC Bot
d6cd2146fa chore: Publish crates 2023-12-17 08:43:12 +00:00
SWC Bot
45f62f7886 chore: Publish crates 2023-12-17 06:48:43 +00:00
SWC Bot
dd9ed9c565 chore: Publish crates 2023-12-12 06:14:41 +00:00
SWC Bot
f736c3c2df chore: Publish crates 2023-12-12 05:55:01 +00:00
SWC Bot
f202a2839f chore: Publish crates 2023-12-12 04:39:47 +00:00
SWC Bot
602584dd62 chore: Publish crates 2023-12-11 03:07:28 +00:00
magic-akari
a69f172aac
fix(es/fixer): Preserve parenthesis for optional chaining (#8399)
**Related issue:**
 - Closes #8398
2023-12-11 03:05:58 +00:00
SWC Bot
2aebd5fa2f chore: Publish crates 2023-12-08 14:01:33 +00:00
SWC Bot
595f13c019 chore: Publish crates 2023-12-08 07:18:16 +00:00
SWC Bot
dbeb869463 chore: Publish crates 2023-12-08 06:00:21 +00:00
SWC Bot
0bde652b5c chore: Publish crates 2023-12-08 01:58:57 +00:00
SWC Bot
6ef6cf6f35 chore: Publish crates 2023-12-07 16:22:39 +00:00
SWC Bot
7327f257d2 chore: Publish crates 2023-12-04 09:00:34 +00:00
SWC Bot
c6e64148b0 chore: Publish crates 2023-12-03 01:14:41 +00:00
Redfire
91e0fc7250
chore(deps): Update indexmap to v2 (#8370)
**Description:**

Updates `indexmap` to `v2`, reducing dependency duplication. Unfortunately there are still many dependencies that require `v1`, including `rkyv` and `cranelift-egraph` that have no published versions using indexmap `v2`.
2023-12-03 01:12:30 +00:00
SWC Bot
9a41fac89f chore: Publish crates 2023-12-02 23:25:06 +00:00
SWC Bot
c77f987b9b chore: Publish crates 2023-12-02 11:43:08 +00:00
SWC Bot
98c47df37a chore: Publish crates 2023-12-01 20:08:13 +00:00
SWC Bot
0845693536 chore: Publish crates 2023-11-29 14:11:49 +00:00
bohan
2cdea3fbea
fix(es/codegen): Wrap quote for length greater than one (#8351) 2023-11-29 14:09:44 +00:00
SWC Bot
655e95a24d chore: Publish crates 2023-11-29 13:41:46 +00:00
SWC Bot
ddddd20559 chore: Publish crates 2023-11-27 01:56:46 +00:00
SWC Bot
e158c0e5a0 chore: Publish crates 2023-11-26 11:37:59 +00:00
SWC Bot
7e8b6c0f04 chore: Publish crates 2023-11-26 00:50:50 +00:00
SWC Bot
ae6c30b221 chore: Publish crates 2023-11-25 02:45:12 +00:00
Austaras
ed5a9b3f2e
fix(es/minifier): Give up terminate merge if in try with finally (#8342)
**Related issue:**

 - Closes #8337.
 - Closes #8324.
 - Reverts #8328.
2023-11-25 02:43:18 +00:00
SWC Bot
5d94418518 chore: Publish crates 2023-11-23 01:53:53 +00:00
SWC Bot
5ce4b368db chore: Publish crates 2023-11-23 00:57:05 +00:00
Donny/강동윤
01e2c7fc5a
fix(es/minifier): Fix if_return bug related to await and yield (#8328)
**Related issue:**

 - Closes #8324
2023-11-23 00:54:57 +00:00
SWC Bot
14cd8dda29 chore: Publish crates 2023-11-22 23:25:21 +00:00
SWC Bot
185289775f chore: Publish crates 2023-11-22 06:22:12 +00:00
SWC Bot
97d57f0e4f chore: Publish crates 2023-11-21 09:21:47 +00:00
SWC Bot
7cec0ac1a0 chore: Publish crates 2023-11-20 22:51:17 +00:00