Commit Graph

7478 Commits

Author SHA1 Message Date
LongYinan
fa7e4289bd
chore(ci): Fix permissions of publish action (#7768) 2023-08-07 17:16:05 +09:00
SWC Bot
51d17b66ad chore: Publish crates 2023-08-06 22:16:01 +00:00
Donny/강동윤
d57ac0dd28
fix(es/utils): Ignore typeof Id while preserving side effects (#7763)
**Related issue:**

 - Closes #7750
2023-08-06 22:14:05 +00:00
SWC Bot
434472a678 chore: Publish crates 2023-08-06 21:44:26 +00:00
Ian Kerins
b69ae8f433
fix(es/compat): Fix loose mode of the spread pass (#7760) 2023-08-06 21:42:33 +00:00
SWC Bot
97289b4edc chore: Publish crates 2023-08-06 20:31:13 +00:00
Gareth McSorley
e50cfde938
refactor(es/parser): Do not use lexical (#7758)
This PR replaces the current usage of lexical within the swc_ecma_parser
crate with equivalent parsing of large numbers using BigInt.

**Description:**

As discussed in
https://github.com/swc-project/swc/issues/7752, lexical contains a
number of soundness issues but doesn't appear to be actively supported.
Given the relatively low integration surface it seems reasonable to
replace the usage of lexical with another package to avoid this issue.

**Related issue:**

- Closes #7752
2023-08-06 20:29:17 +00:00
SWC Bot
c9a55603ae chore: Publish crates 2023-08-03 22:23:07 +00:00
Fy
1122de7d8b
fix(plugin/runner): Use fs cache properly (#7748) 2023-08-03 22:20:51 +00:00
SWC Bot
875a7a7393 chore: Publish crates 2023-08-03 03:23:59 +00:00
Donny/강동윤
28dfc51887
feat(es): Alias format as output for minify() (#7746)
**Related issue:**

 - Closes #7738.
2023-08-03 03:22:09 +00:00
SWC Bot
d0ea6bdd84 chore: Publish crates 2023-08-03 02:45:17 +00:00
thy486
f713f6aba8
fix(es/module): Fix handling of continuous assignments in systemjs (#7741)
**Description:**

Fix transpile the continuous assignment code like `d.a = d.b = d.c = d.d = ... = void 0;` to SystemJS may cause Infinite loop.

**Related issue:**

 - Closes #7143.
2023-08-03 02:43:17 +00:00
Donny/강동윤
5afdd2ed54 chore: Publish crates 2023-08-03 07:19:43 +09:00
Donny/강동윤
9eb05f2d05
chore: Publish v1.3.74 with swc_core v0.79.38 (#7744) 2023-08-03 07:17:29 +09:00
SWC Bot
e22cdccedd chore: Publish crates 2023-08-02 22:04:35 +00:00
Donny/강동윤
3873f58499
fix(es/minifier): Mark args of news as references (#7743)
**Related issue:**

 - Closes #7739.
2023-08-03 07:02:15 +09:00
SWC Bot
791025943a chore: Publish crates 2023-08-02 20:43:00 +00:00
Jean-Cédric Huet
22e06cce63
fix(es): Fix typo in a warning (#7740) 2023-08-02 20:40:57 +00:00
Donny/강동윤
6d7e13ae26 chore: Publish crates 2023-08-01 12:41:32 +09:00
Donny/강동윤
6dce81e2ca
chore: Publish v1.3.73 with swc_core v0.79.36 (#7733) 2023-08-01 12:40:40 +09:00
SWC Bot
383509fd9d chore: Publish crates 2023-07-31 15:46:19 +00:00
Felipe Armoni
216c4f17df
test(es/compat): Add a test for optional chaining with loose mode (#7726) 2023-07-31 15:44:28 +00:00
SWC Bot
5284220d6c chore: Publish crates 2023-07-31 08:08:38 +00:00
Donny/강동윤
b4f3332b21
feat(es/preset-env): Update builtin definitions for core-js imports (#7715)
**Related issue:**

 - Closes #7712.
2023-07-31 08:06:24 +00:00
SWC Bot
1a5a3313cf chore: Publish crates 2023-07-31 04:12:06 +00:00
Austaras
5ea6f27eb0
fix(es/minifier): Handle synthesized export default expression (#7707)
**Related issue:**

 - Closes #7634.
2023-07-31 04:10:18 +00:00
SWC Bot
ef306256d2 chore: Publish crates 2023-07-31 03:33:30 +00:00
Donny/강동윤
e8c58cfd77
fix(es/utils): Fix string evaluation of array literals (#7731)
**Related issue:**

 - Closes #7714.
2023-07-31 03:31:37 +00:00
Donny/강동윤
ffe99a9665 chore: Publish crates 2023-07-29 04:36:29 +09:00
Donny/강동윤
00a0575408
chore: Publish v1.3.72 with swc_core v0.79.33 (#7727) 2023-07-29 04:34:33 +09:00
SWC Bot
640318c616 chore: Publish crates 2023-07-28 16:59:14 +00:00
Donny/강동윤
f901b417d1
fix(es/minifier): Do not drop used properties (#7702)
**Related issue:**

 - Closes #7700.
 - Closes #7710.
2023-07-28 16:57:07 +00:00
SWC Bot
d3b516d692 chore: Publish crates 2023-07-28 05:59:26 +00:00
Rene B
864bdefbe0
refactor(es/parser): Make stacker an optional dependency (#7720) 2023-07-28 05:57:31 +00:00
SWC Bot
9a57f8ab6d chore: Publish crates 2023-07-28 05:22:07 +00:00
magic-akari
40136f7c54
fix(es/module): Do not determine module name for modules without exports in UMD (#7718)
**Related issue:**

 - Closes #6263.
2023-07-28 05:20:16 +00:00
SWC Bot
3f3de2e316 chore: Publish crates 2023-07-28 04:42:31 +00:00
Felipe Armoni
7ba7b6ec1f
fix(es/compat): Fix handling of private members in optional chaining pass (#7610)
**Related issue:**

 - Closes #7561.
2023-07-28 04:40:19 +00:00
SWC Bot
e105f207df chore: Publish crates 2023-07-28 03:30:04 +00:00
OJ Kwon
2bc96373b7
feat(swc_core): Expose visit/serde as serde feature (#7722) 2023-07-28 12:27:55 +09:00
SWC Bot
9daa0e2c6a chore: Publish crates 2023-07-25 08:17:01 +00:00
Donny/강동윤
900701fbf2
feat(es): Add a validation for a wrong config (#7704)
**Related issue:**

 - Closes #6956.
2023-07-25 08:14:49 +00:00
Donny/강동윤
42198679aa chore: Publish crates 2023-07-25 12:53:29 +09:00
Donny/강동윤
d358c01392
chore: Publish v1.3.71 with swc_core v0.79.27 (#7703) 2023-07-25 12:52:06 +09:00
SWC Bot
4c43d5aa3d chore: Publish crates 2023-07-25 03:32:13 +00:00
Donny/강동윤
a26dbce981
fix(es/minifier): Abort seq inliner using visitor (#7699)
**Related issue:**

 - Closes #7697.
2023-07-25 03:30:33 +00:00
SWC Bot
cd98859482 chore: Publish crates 2023-07-25 02:56:16 +00:00
Austaras
bf723625b0
refactor(es/minifier): Respect top-level when invoking IIFE (#7690) 2023-07-25 02:53:55 +00:00
SWC Bot
11efd4e7c5 chore: Publish crates 2023-07-24 04:39:18 +00:00