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
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
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
SWC Bot
606b57c101
chore: Publish crates
2023-08-25 22:13:55 +00:00
Donny/강동윤
7911973020
chore: Publish crates
2023-08-25 22:55:28 +09:00
SWC Bot
5c96b8545d
chore: Publish crates
2023-08-25 13:48:47 +00:00
Donny/강동윤
11ebae1bdd
fix(es/module): Don't resolve as node_modules
from TscResolver
( #7866 )
...
**Related issue:**
- Closes #7863
2023-08-25 22:46:53 +09:00
SWC Bot
7986566128
chore: Publish crates
2023-08-25 07:25:19 +00:00
Donny/강동윤
52a1ee78da
fix(es/module): Fix logic for exact matches in jsc.paths
( #7860 )
...
**Related issue:**
- Closes #7829
2023-08-25 07:23:19 +00:00
Donny/강동윤
c18051fb0b
chore: Publish crates
2023-08-25 15:21:54 +09:00
SWC Bot
9c69caf665
chore: Publish crates
2023-08-25 06:07:50 +00:00
Donny/강동윤
d33a97303c
fix(es/module): Make jsc.paths
work for a nest.js app ( #7852 )
2023-08-25 15:05:43 +09:00
SWC Bot
f79ca54584
chore: Publish crates
2023-08-25 04:49:30 +00:00
Lewis Liu
ae8cd9430d
fix(es/minifier): Don't remove exports ( #7856 )
2023-08-25 13:47:42 +09:00
SWC Bot
5ae2e810d8
chore: Publish crates
2023-08-25 03:34:55 +00:00
SWC Bot
e3b4cfbbf9
chore: Publish crates
2023-08-24 18:52:19 +00:00
Donny/강동윤
64e51d3a28
fix(es): Fix default value of jsc.minify.format.comments
( #7853 )
...
**Related issue:**
- Closes #7842
2023-08-24 18:50:21 +00:00
SWC Bot
7b5cb902a5
chore: Publish crates
2023-08-24 12:58:41 +00:00
Donny/강동윤
c65732496e
refactor(common): Mark some methods of Input
unsafe ( #7848 )
...
**Related issue:**
- Closes #7709
2023-08-24 12:56:38 +00:00