Skip to content

Commit

Permalink
Update SWC relay Wasm plugin (#8218)
Browse files Browse the repository at this point in the history
### Description

Fixes vercel/next.js#64890

When `eagerEsModule` is used, the SWC relay plugin _prepends_ the import statements, and it made server actions transform think `"use server"` is not the first statement.


### Testing Instructions

I added tests to swc-project/plugins#306
  • Loading branch information
kdy1 committed May 28, 2024
1 parent dad9f5c commit 32e4789
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ swc_core = { version = "0.92.5", features = [
"ecma_loader_parking_lot",
] }
swc_emotion = { version = "0.72.13" }
swc_relay = { version = "0.44.13" }
testing = { version = "0.35.24" }
swc_relay = { version = "0.44.14" }
testing = { version = "0.35.25" }
# Temporary: Reference the latest git minor version of pathfinder_simd until it's published.
pathfinder_simd = "0.5.3"

Expand Down

0 comments on commit 32e4789

Please sign in to comment.