Commit Graph

4558 Commits

Author SHA1 Message Date
SWC Bot
29fee38224 chore: Publish crates 2023-02-09 05:11:07 +00:00
Donny/강동윤
85a8defc37
fix(es/preset-env): Fix default target (#6921)
**Description:**

Previously the default value of `targets` was `""`, which is not deterministic.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6888.
2023-02-09 05:08:41 +00:00
SWC Bot
fe095e9dc1 chore: Publish crates 2023-02-09 03:10:10 +00:00
Donny/강동윤
725d3fb645
fix(es/minifier): Don't skip shorthand properties from sequential inliner (#6918)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6914.
2023-02-09 03:07:31 +00:00
Donny/강동윤
932d5a5302 chore: Publish crates 2023-02-08 16:51:05 +09:00
SWC Bot
b72ee503e4 chore: Publish crates 2023-02-08 07:48:41 +00:00
SWC Bot
63216ccf3f chore: Publish crates 2023-02-08 06:47:21 +00:00
Donny/강동윤
d18027cf9b
test(es/module): Add a test for jsc.paths on windows (#6915)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5165.
2023-02-08 06:44:22 +00:00
SWC Bot
f7f18eded3 chore: Publish crates 2023-02-08 05:48:53 +00:00
SWC Bot
a566f9c999 chore: Publish crates 2023-02-08 05:17:01 +00:00
Donny/강동윤
4c5d5a6fca
fix(es/parser): Don't use stacker for armv7 (#6916) 2023-02-08 05:14:41 +00:00
SWC Bot
4be6c33687 chore: Publish crates 2023-02-08 04:37:20 +00:00
Ah
f85ea9cb57
fix(css/modules): Fix interop of & and :global (#6900) 2023-02-08 04:34:38 +00:00
Donny/강동윤
c293c14aaa chore: Publish crates 2023-02-08 12:04:02 +09:00
SWC Bot
6112471d25 chore: Publish crates 2023-02-08 02:13:29 +00:00
Donny/강동윤
951dafbc1a
fix(es/minifier): Don't break ternary with assignment in test (#6906)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6903.
2023-02-08 02:10:44 +00:00
SWC Bot
7f7e21b687 chore: Publish crates 2023-02-07 16:12:00 +00:00
Alex Vasilev
85fffdad02
fix(es/module): Fix SystemJS imports (#6879)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5922.
2023-02-07 16:07:46 +00:00
SWC Bot
74070935a9 chore: Publish crates 2023-02-07 15:20:28 +00:00
Daiki Nishikawa
76bc8a2974
feat(bindings/cli): Support for *.mts/*.cts files (#6909)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/4679.
2023-02-07 15:18:10 +00:00
SWC Bot
e65699c755 chore: Publish crates 2023-02-07 14:35:38 +00:00
Donny/강동윤
f36d945a33
fix(es/parser): Fix stack overflow due to deeply nested if (#6910)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6813.
2023-02-07 14:33:13 +00:00
SWC Bot
bd0072511b chore: Publish crates 2023-02-07 08:09:02 +00:00
Donny/강동윤
ee3a1071a5
fix(es/typescript): Ignore jsx element names (#6911)
**Related issue:**

 - https://github.com/vercel/next.js/issues/45561.
2023-02-07 08:06:37 +00:00
SWC Bot
58b74ffbe2 chore: Publish crates 2023-02-07 06:24:58 +00:00
SWC Bot
113b85ee40 chore: Publish crates 2023-02-07 05:17:06 +00:00
Donny/강동윤
432dca647b
fix(es/minifier): Respect span hygiene from expr simplifier (#6899)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6896.
2023-02-07 05:14:19 +00:00
SWC Bot
af175fde8b chore: Publish crates 2023-02-07 03:46:20 +00:00
SWC Bot
33093877c1 chore: Publish crates 2023-02-05 21:38:41 +00:00
Jonathan Rudenberg
d993c4def6
feat(bindings/cli): Add --config (#6835) 2023-02-05 21:35:48 +00:00
SWC Bot
f2333e4ccf chore: Publish crates 2023-02-05 19:50:46 +00:00
SWC Bot
c223113338 chore: Publish crates 2023-02-01 10:34:44 +00:00
SWC Bot
18af9c3a27 chore: Publish crates 2023-02-01 06:51:38 +00:00
Donny/강동윤
861d87cae6
fix(es/resolver): Resolve parameters correctly (#6890)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5622.
2023-02-01 15:49:08 +09:00
Donny/강동윤
ab02c0a07e chore: Publish crates 2023-02-01 09:37:56 +09:00
SWC Bot
61397267bb chore: Publish crates 2023-01-31 15:04:52 +00:00
Donny/강동윤
e79d46697c
test(es/compat): Add a test for a fixed issue (#6887)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6886.
2023-01-31 15:01:57 +00:00
SWC Bot
5160378f53 chore: Publish crates 2023-01-31 06:27:05 +00:00
Donny/강동윤
57781e90d3
fix(es/compat): Make optional chaining pass less permissive (#6885)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6878.
2023-01-31 06:24:23 +00:00
SWC Bot
f89d3d688c chore: Publish crates 2023-01-31 05:47:59 +00:00
Donny/강동윤
d6a24a28e8
build(cargo): Drop dependencies on retain_mut (#6884) 2023-01-31 05:45:37 +00:00
SWC Bot
cdfaa8e292 chore: Publish crates 2023-01-31 03:24:17 +00:00
Donny/강동윤
9301703311
fix(es): Remove useless message (#6882) 2023-01-31 03:21:32 +00:00
Donny/강동윤
1bf2b2ddbf chore: Publish crates 2023-01-30 22:35:40 +09:00
SWC Bot
3e8d80a324 chore: Publish crates 2023-01-30 11:17:16 +00:00
Donny/강동윤
d8088646df
fix(es/compat): Fix optional chaining pass (#6875)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6762.
2023-01-30 11:14:53 +00:00
SWC Bot
edc432713e chore: Publish crates 2023-01-29 15:33:29 +00:00
Daiki Nishikawa
6b7249dcde
feat(es/loader): Support node: prefix from NodeModulesResolver (#6868) 2023-01-29 15:31:13 +00:00
SWC Bot
0bb4dc2c3d chore: Publish crates 2023-01-29 14:56:26 +00:00
HeYunfei
508267dccf
fix(visit): Fix detection of Option<Vec<T>> (#6872) 2023-01-29 14:54:08 +00:00
Donny/강동윤
b8fcf3bc62 chore: Publish crates 2023-01-29 22:44:56 +09:00
SWC Bot
2836fb207b chore: Publish crates 2023-01-29 13:30:41 +00:00
Donny/강동윤
cb3901cb5e chore: Publish crates 2023-01-29 03:35:48 +09:00
SWC Bot
3babace12d chore: Publish crates 2023-01-28 18:34:39 +00:00
SWC Bot
1b56b40fda chore: Publish crates 2023-01-28 17:21:30 +00:00
Austaras
c0e72ef64a
fix(es/minifier): Track reassign in parent scope (#6865)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6864.
2023-01-28 17:19:19 +00:00
SWC Bot
33dab56853 chore: Publish crates 2023-01-27 13:00:49 +00:00
Alex Vasilev
39c75fdcce
fix(es/module): Fix handling of this for systemjs (#6857)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6784.
2023-01-27 12:58:22 +00:00
SWC Bot
5a5a7d70e4 chore: Publish crates 2023-01-27 06:59:44 +00:00
Donny/강동윤
60d9403073
fix(es/parser): Fix parsing of generics (#6859)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6851.
2023-01-27 06:57:19 +00:00
SWC Bot
586783a7ac chore: Publish crates 2023-01-27 05:38:19 +00:00
Donny/강동윤
d1687d8e01
feat(es/minifier): Improve compatibility of arrows with terser (#6862)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6123.
2023-01-27 14:36:12 +09:00
SWC Bot
49d9237e64 chore: Publish crates 2023-01-27 04:47:07 +00:00
Donny/강동윤
45cdfed6c8
chore(ci): FIx CI (#6861) 2023-01-27 04:44:58 +00:00
Donny/강동윤
420a67ac2b chore: Publish crates 2023-01-26 17:22:40 +09:00
Donny/강동윤
7147cb3e2a chore: Publish crates 2023-01-26 12:27:54 +09:00
SWC Bot
dbb3f362aa chore: Publish crates 2023-01-26 03:09:22 +00:00
SWC Bot
8fc1b651b1 chore: Publish crates 2023-01-26 02:11:53 +00:00
Donny/강동윤
99d48e305e
fix(plugin): Make span_to_source use dedicated function (#6853)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6852.
 - Closes https://github.com/swc-project/swc/issues/6404.
2023-01-26 02:09:36 +00:00
SWC Bot
28be71dfaf chore: Publish crates 2023-01-26 01:19:53 +00:00
Austaras
55225cb994
refactor(es/minifier): Merge cond_init with reassigned (#6850)
**Description:**

And optimize the following situation
```js
export function genElement(el, state) {
    if ('slot' === el.tag) return el1 = el, genChildren(el1);
    if (el.component) {
        var el1
        return 999;
    }
}
```
which rarely happens in hand written JS, but is often generated by swc merge variable pass.
2023-01-26 10:17:33 +09:00
Donny/강동윤
1bf9b3777e chore: Publish crates 2023-01-24 16:05:45 +09:00
SWC Bot
7ee39c73e1 chore: Publish crates 2023-01-24 07:05:16 +00:00
SWC Bot
30b8cc612e chore: Publish crates 2023-01-24 06:18:52 +00:00
HeYunfei
58208ef8ae
perf(es/minifier): Make pure function check O(1) (#6840) 2023-01-24 06:16:23 +00:00
SWC Bot
05724e5122 chore: Publish crates 2023-01-23 10:16:00 +00:00
Austaras
2fcab36418
refactor(es/preset-env): Use a const fn instead of a macro (#6844) 2023-01-23 10:13:42 +00:00
SWC Bot
1d81137592 chore: Publish crates 2023-01-20 08:52:56 +00:00
Donny/강동윤
21e14787c5
fix(es/minifier): Don't inline into await from sequential inliner (#6839)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6837.
2023-01-20 08:50:51 +00:00
SWC Bot
8863e31446 chore: Publish crates 2023-01-20 08:11:11 +00:00
Donny/강동윤
df702614e1
fix(es/codegen): Fix codegen of string literals with \x000 (#6838)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6836.
2023-01-20 08:08:58 +00:00
SWC Bot
8194c65953 chore: Publish crates 2023-01-18 02:19:16 +00:00
Alex Dixon
7205543d5f
refactor(es/typescript): Remove unused code (#6830) 2023-01-18 02:16:43 +00:00
SWC Bot
09b3e72861 chore: Publish crates 2023-01-17 06:58:46 +00:00
Donny/강동윤
6ba726ba28 chore: Publish crates 2023-01-17 11:56:28 +09:00
SWC Bot
6f77544a10 chore: Publish crates 2023-01-17 02:52:10 +00:00
SWC Bot
c3607ba6eb chore: Publish crates 2023-01-16 16:09:51 +00:00
RiESAEX
ad8d043f1d
feat(es/helper): Use require to load polyfills and helpers in Script (#6778) 2023-01-16 16:07:40 +00:00
SWC Bot
b1f3eb74df chore: Publish crates 2023-01-16 15:26:01 +00:00
westhide
e9fdac216c
fix(es/codegen): Skip space if jsx attrs is empty (#6823) 2023-01-16 15:23:28 +00:00
SWC Bot
4a75eb0157 chore: Publish crates 2023-01-16 06:59:39 +00:00
Donny/강동윤
ebce18b221
fix(es/renamer): Handle rest params correctly (#6821)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6819.
2023-01-16 06:57:16 +00:00
SWC Bot
179a5f8a92 chore: Publish crates 2023-01-16 04:53:53 +00:00
Donny/강동윤
82bd5c2041
feat(es/renamer): Rename synthesized identifiers even on eval (#6818)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5068.
2023-01-16 04:51:47 +00:00
SWC Bot
a5707ae7c1 chore: Publish crates 2023-01-15 06:45:26 +00:00
Donny/강동윤
ff78b8f7e0
feat(es/ast): Add EsNext to EsVersion (#6816) 2023-01-15 15:43:10 +09:00
SWC Bot
4ea0e20ded chore: Publish crates 2023-01-15 00:20:53 +00:00
SWC Bot
767f50040b chore: Publish crates 2023-01-14 09:00:21 +00:00
Alexander Akait
43e75194e5
feat(css/parser): Normalize at-rules (#6705) 2023-01-14 08:58:24 +00:00
SWC Bot
47cc6446d4 chore: Publish crates 2023-01-13 07:32:44 +00:00