Commit Graph

7078 Commits

Author SHA1 Message Date
magic-akari
985f0cad06
fix(es/parser): Parse decorators after export (#7340) 2023-04-29 22:26:13 +09:00
SWC Bot
b80ceaed03 chore: Publish crates 2023-04-29 13:21:14 +00:00
Donny/강동윤
246300ae25
feat(es/minifier): Drop expressions using sequential inliner (#6936) 2023-04-29 22:19:00 +09:00
SWC Bot
098b9387c1 chore: Publish crates 2023-04-29 13:00:37 +00:00
Donny/강동윤
d6999ba1ac
fix(plugin/runner): Revert #7341 (#7344)
**Description:**

This reverts commit 245163a778.
2023-04-29 21:58:48 +09:00
SWC Bot
2c7f94f1ac chore: Publish crates 2023-04-29 11:16:12 +00:00
OJ Kwon
245163a778
feat(plugin/runner): Improve caching (#7341)
**Description:**

Previously disabled cache (storing compiled module in memory) still doesn't work, so falling back to storing raw bytes and create new module each time. This is the same behavior to the wasm build's approach.

Also minor improved caching root to include more information. Previous rustc didn't seem to work unfortunately, so removed but instead using plugin_runner's version.
2023-04-29 11:14:21 +00:00
SWC Bot
e7911ee594 chore: Publish crates 2023-04-26 01:25:19 +00:00
Samuel Eisenhandler
7e99e5fd2c
fix(es/codegen): Emit type arguments for call expressions (#7335) 2023-04-26 01:23:13 +00:00
Donny/강동윤
1ecc4385b6 chore: Publish crates 2023-04-25 19:25:16 +09:00
Donny/강동윤
c67900278e
chore: Publish v1.3.55 with swc_core v0.75.35 (#7332) 2023-04-25 19:22:55 +09:00
SWC Bot
d67f9bfd75 chore: Publish crates 2023-04-25 10:06:32 +00:00
magic-akari
caee073935
feat(es/module): Add export_interop_annotation flag (#7330)
**Related issue:**

 - https://github.com/vercel/next.js/issues/48801
2023-04-25 10:04:28 +00:00
Donny/강동윤
c77f175ace chore: Publish @swc/helpers@v0.5.1 2023-04-25 12:43:09 +09:00
magic-akari
84af85563f
fix(es/helpers): Add src/*.mjs entry back (#7328)
**Related issue:**

 - https://github.com/vercel/next.js/issues/48593
2023-04-25 12:41:39 +09:00
Donny/강동윤
897099b970 chore: Publish crates 2023-04-25 09:30:08 +09:00
Donny/강동윤
08b3dc0149
chore: Publish v1.3.54 with swc_core v0.75.34 (#7327) 2023-04-25 09:28:27 +09:00
SWC Bot
5f55e04c4d chore: Publish crates 2023-04-24 15:01:16 +00:00
Donny/강동윤
603f22de76
test(es): Update tsc test suite (#7323) 2023-04-24 14:59:19 +00:00
SWC Bot
923ed13b6a chore: Publish crates 2023-04-24 09:25:42 +00:00
OJ Kwon
577f81ec40
fix(common): Workaround the Arc and rkyv issue (#7321)
**Description:**

Attempt to workaround #7238.

Originally I thought this is related with oom or memory layout, then realized actual deserialization error occurs in weird position - it tries to deserialize BytePos (which is obvious type) and it fails. It made me think maybe a property next to the struct layout have some unexpected behavior, notably Arc<String>.

PR applies same workaround as Atom does, and it seems to at least pass swc-coverage-instrument's usecases. May need bit more verification with other plugins to see if we can call this out as reliable workaround.
2023-04-24 09:23:31 +00:00
SWC Bot
51f3840609 chore: Publish crates 2023-04-24 05:25:39 +00:00
Fy
66b5b110bf
fix(es/compat): Transform curried function call with optional chaining (#7313)
**Related issue:**

 - Closes #7312
2023-04-24 05:23:53 +00:00
SWC Bot
5400648de8 chore: Publish crates 2023-04-24 04:17:24 +00:00
David Sherret
0ca05d8b69
fix(es/codegen): Fix codegen of TsModuleDecl (#7319) 2023-04-24 04:15:08 +00:00
SWC Bot
caffb9593c chore: Publish crates 2023-04-24 03:28:05 +00:00
voorjaar
761ef8389d
fix(bindings/node): Support TsSatisfiesExpression (#7317) 2023-04-24 12:26:13 +09:00
Donny/강동윤
2c441f5c8d chore: Publish crates 2023-04-21 15:30:05 +09:00
Donny/강동윤
a483750bd9
chore: Publish v1.3.53 with swc_core v0.75.31 (#7310) 2023-04-21 15:29:14 +09:00
SWC Bot
f2a38e808a chore: Publish crates 2023-04-21 06:13:37 +00:00
Donny/강동윤
6f81cb9c32
fix(es/parser): Fix handling of in and out of typescript (#7308)
**Related issue:**

 - Closes #7305.
2023-04-21 15:11:18 +09:00
SWC Bot
1812d9ef7f chore: Publish crates 2023-04-21 04:00:12 +00:00
Donny/강동윤
e7f7b01f59
fix(es): Fix a crash related to source map (#7307)
**Related issue:**

 - Reverts #7229.
 - Closes #7301.
2023-04-21 03:58:24 +00:00
SWC Bot
c8e6774070 chore: Publish crates 2023-04-20 08:28:29 +00:00
magic-akari
38dfb91ebc
fix(es/helpers): Remove unnecessary parameters in helper_expr! macro (#7296)
**Description:**

We have moved to snake_case, so the last parameter of helper_expr is unnecessary.
2023-04-20 08:26:34 +00:00
SWC Bot
af8e158948 chore: Publish crates 2023-04-20 07:35:26 +00:00
Donny/강동윤
9c279b802b
fix(es/modules): Support jsc.baseUrl without jsc.paths (#7302)
**Related issue:**

 - Closes #1324.
2023-04-20 07:33:29 +00:00
Donny/강동윤
9816ba2795
chore: Update issue template to prevent useless issues (#7303) 2023-04-20 15:37:30 +09:00
SWC Bot
35ad9234e9 chore: Publish crates 2023-04-20 02:13:02 +00:00
Donny/강동윤
38495a9835
test(es/compat): Add a test for a wrong issue (#7300)
**Related issue:**

 - Closes #7290.
2023-04-20 11:10:25 +09:00
SWC Bot
7fd1e93434 chore: Publish crates 2023-04-19 21:54:39 +00:00
Leah
3422923cb0
fix(testing): Fix path normalization on windows for testing diffs (#7299) 2023-04-19 21:52:40 +00:00
SWC Bot
ffa76894fd chore: Publish crates 2023-04-19 14:28:50 +00:00
Donny/강동윤
07feee98ac
chore: Publish v1.3.52 with swc_core v0.75.27 (#7297) 2023-04-19 23:27:00 +09:00
SWC Bot
095e0ad034 chore: Publish crates 2023-04-19 12:30:15 +00:00
OJ Kwon
39d415cc16
build(cargo): bump up wasmer (#7294)
**Description:**
Maybe fix? https://github.com/swc-project/swc/issues/7238

https://github.com/wasmerio/wasmer/issues/3764#issuecomment-1514084441
2023-04-19 12:28:31 +00:00
SWC Bot
0e4d764f90 chore: Publish crates 2023-04-19 11:27:00 +00:00
Austaras
7a00f2e954
fix(es/resolver): Hoist parameter in arrow and constructor (#7292)
**Related issue:**

 - Closes #7248.

---

Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2023-04-19 11:25:02 +00:00
SWC Bot
0d4fe74ab5 chore: Publish crates 2023-04-19 07:24:45 +00:00
Donny/강동윤
0aab90c005
fix(es/minifier): Fix a inliner bug related to Script (#7288)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7287.
2023-04-19 07:22:48 +00:00