magic-akari
2da58959c2
fix(es/codegen): Emit leading comments for ExprStmt
( #7916 )
2023-09-10 06:58:26 +00:00
SWC Bot
3210556c7e
chore: Publish crates
2023-09-10 06:29:19 +00:00
Austaras
97068e12d1
fix(es/compat): Visit assign expr in generator ( #7932 )
...
**Related issue:**
- Closes #7809
2023-09-10 06:27:30 +00:00
Donny/강동윤
d15eaf05cd
chore: Publish @swc/helpers@0.5.2
...
- Fixes #7919 .
2023-09-07 16:08:44 +09:00
Donny/강동윤
8bb2925e23
chore: Publish crates
2023-09-07 10:23:00 +09:00
Donny/강동윤
3b10b7532d
chore: Publish v1.3.83
with swc_core
v0.83.2
( #7920 )
2023-09-07 10:20:12 +09:00
SWC Bot
8bb911269c
chore: Publish crates
2023-09-06 17:31:41 +00:00
Donny/강동윤
a86e9f3bb5
fix(es/module): Fix jsc.paths
for projects using pnpm ( #7918 )
...
**Related issue:**
- x-ref: https://vercel.slack.com/archives/C04DUD7EB1B/p1693911653100299?thread_ts=1693819683.070959&cid=C04DUD7EB1B
2023-09-06 17:29:47 +00:00
SWC Bot
5c005256d6
chore: Publish crates
2023-09-06 10:26:13 +00:00
Kei Sakamoto
0db25a252c
fix(css/modules): Aggregate class names when composes is chained. ( #7917 )
...
**Description:**
aggregate class names when composes is chained.
**Related issue:**
- Closes #7737
- https://github.com/web-infra-dev/rspack/issues/3875
2023-09-06 19:24:26 +09:00
SWC Bot
4623b3e07f
chore: Publish crates
2023-09-05 12:26:15 +00:00
Donny/강동윤
ee7575695d
feat(es/codegen): Add an option to print assert
for import attributes ( #7914 )
...
**Description:**
- `jsc.experimental.keepImportAssertions` is renamed to `jsc.experimental.keepImportAttributes`.
- `jsc.experimental.emitAssertForImportAttributes` is added.
**Related issue:**
- Closes #7908
2023-09-05 21:24:25 +09:00
SWC Bot
92d08c38e2
chore: Publish crates
2023-09-01 05:26:46 +00:00
Donny/강동윤
85d6e9be07
fix(es/module): Revert #7901 ( #7906 )
...
**Description:**
I'm reverting #7901 because it caused a regression in next.js CI.
https://github.com/vercel/next.js/pull/54653
**Related issue:**
- Reverts #7901 .
2023-09-01 14:24:50 +09:00
Donny/강동윤
fd1c0cfdae
chore: Publish crates
2023-09-01 11:36:14 +09:00
Donny/강동윤
7d2a3015dc
chore: Publish v1.3.82
with swc_core
v0.82.10
( #7905 )
2023-09-01 11:35:07 +09:00
SWC Bot
d1ec49e3e5
chore: Publish crates
2023-08-31 13:25:10 +00:00
Donny/강동윤
aa6495519b
fix(common): Fix logic for excluding FileName
from source maps ( #7900 )
...
**Description:**
This PR also modifies React transform to use `FileName::Internal` and makes `SourceMapGenConfig` skips `FileName::Internal`.
**Related issue:**
- Closes #5272
2023-08-31 13:23:11 +00:00
SWC Bot
e5f7a9dab0
chore: Publish crates
2023-08-31 07:26:53 +00:00
Donny/강동윤
c714dd20de
fix(es/module): Make jsc.paths
fully resolve TypeScript files ( #7901 )
...
**Related issue:**
- Closes #7861
- Closes #7898
2023-08-31 07:24:12 +00:00
SWC Bot
482306086d
chore: Publish crates
2023-08-31 05:56:04 +00:00
Austaras
2db10e9fd1
fix(es/resolver): Correctly resolve global value ( #7893 )
...
**Related issue:**
- Closes #7685
2023-08-31 05:54:18 +00:00
Donny/강동윤
15d3900f60
chore: Publish crates
2023-08-30 21:08:25 +09:00
Donny/강동윤
feb36e61ff
chore: Publish v1.3.81
with swc_core
v0.82.7
( #7895 )
2023-08-30 21:07:19 +09:00
SWC Bot
3127ad9515
chore: Publish crates
2023-08-30 10:15:47 +00:00
Donny/강동윤
5fbc251db1
fix(es/module): Don't create absolute paths for jsc.paths
on Windows ( #7892 )
...
**Related issue:**
- Closes #7806
2023-08-30 10:11:34 +00:00
SWC Bot
766d3e8896
chore: Publish crates
2023-08-30 03:03:30 +00:00
Austaras
8db968a25d
refactor(es/minifier): Remove mutated
and mutation_by_call_count
( #7890 )
...
**Description:**
`mutated` can be seen as a combination of `reassigned` and `has_property_mutation`, and `mutation_by_call_count` is simply useless.
2023-08-30 03:01:29 +00:00
SWC Bot
853b4803ad
chore: Publish crates
2023-08-30 02:26:08 +00:00
Donny/강동윤
01cbd6edbd
chore(deps): Update memchr
( #7891 )
2023-08-30 02:23:57 +00:00
SWC Bot
aa8ad10ad8
chore: Publish crates
2023-08-29 10:23:30 +00:00
Austaras
87a47bfb2c
fix(es/minifier): Report is_fn_local
even if var is hoisted ( #7876 )
...
**Related issue:**
- Closes #7847
2023-08-29 10:21:14 +00:00
SWC Bot
c31f05a675
chore: Publish crates
2023-08-29 05:47:51 +00:00
Donny/강동윤
4b33d41fab
fix(es/compat): Make SwitchCase
handler of block-scoping
stateless ( #7888 )
...
**Related issue:**
- Closes #7885
2023-08-29 05:45:13 +00:00
SWC Bot
4a2c24bbec
chore: Publish crates
2023-08-29 05:06:03 +00:00
Donny/강동윤
a50501255d
perf(es/transforms): Remove wrong parallelism ( #7889 )
2023-08-29 05:04:11 +00:00
SWC Bot
3e41468a3a
chore: Publish crates
2023-08-29 01:41:18 +00:00
David Sherret
057bd5f3ef
fix(es/dep-graph): Analyze import type children ( #7883 )
...
**Description:**
It was not analyzing children of a dynamic imports.
2023-08-29 01:39:05 +00:00
SWC Bot
44de87f481
chore: Publish crates
2023-08-28 01:12:12 +00:00
Donny/강동윤
a97d8b42b1
feat(es/preset-env): Update data ( #7882 )
2023-08-28 01:09:38 +00:00
SWC Bot
562f5e1eb3
chore: Publish crates
2023-08-28 00:31:39 +00:00
Donny/강동윤
4d3fcb86e4
feat(es/ast): Support import attributes proposal ( #7868 )
...
**Related issue:**
- Closes #7179
2023-08-28 00:29:45 +00:00
SWC Bot
5d25307a1a
chore: Publish crates
2023-08-27 23:38:50 +00:00
Lewis Liu
122d14c0d3
fix(es/codegen): Fix placing of comments of yield arguments ( #7858 )
...
**Description:**
Looks like the bug I ran into had nothing to do with the changes in
#7856 , since it's reproducible without it. Looks like it might have only
surfaced now because https://github.com/swc-project/swc/pull/7853
changed the default value of `jsc.minify.format.comments`? Added a
minimal test case here with the expected result.
Here's the actual output:
```js
export var padding = '';
export function exec2({ commands }) {
return __awaiter(this, void 0, void 0, function*() {
for(let i2 = 0; i2 < commands.length; i2++){
let command = commands[i2];
yield // some-comment
function({ command }) {
command();
}({
command,
handleError
});
}
});
}
```
The comment ends up getting added after the yield, which makes the
output invalid.
Going to see if I can figure out a fix tomorrow, but let me know if you
have any ideas on where to start looking in the meantime!
2023-08-27 23:36:50 +00:00
SWC Bot
2be46c920c
chore: Publish crates
2023-08-27 18:25:51 +00:00
Donny/강동윤
3180e68bf2
fix(es/compat): Apply transforms for explicit resource management ( #7881 )
...
**Related issue:**
- Closes #7879
2023-08-27 18:23:32 +00:00
SWC Bot
84737cdcd8
chore: Publish crates
2023-08-26 01:14:53 +00:00
Donny/강동윤
71d01ec127
feat(es): Add an option to disable builtin transforms ( #7873 )
2023-08-26 01:12:36 +00:00
Donny/강동윤
eed290319e
chore: Use textarea
for swc-info
2023-08-26 07:28:15 +09:00
Donny/강동윤
67afaf1f2d
fix(swc-info): Use correct path while getting local package versions ( #7872 )
2023-08-26 07:27:09 +09:00