Skip to content

Commit c53d927

Browse files
committed
Fixes
1 parent 8cb0410 commit c53d927

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/next-swc/crates/next-api/src/server_actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ async fn build_server_actions_loader(
100100
// which lazily imports the respective module's chunk_item id and invokes
101101
// the exported action function.
102102
for (i, (module, actions_map)) in actions.iter().enumerate() {
103+
let module_name = format!("ACTIONS_MODULE{i}");
103104
for (hash_id, name) in &*actions_map.await? {
104-
let module_name = format!("ACTIONS_MODULE{i}");
105105
writedoc!(
106106
contents,
107107
"

packages/next-swc/crates/next-core/src/next_shared/transforms/server_actions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use turbopack_binding::turbopack::{
1313

1414
use super::module_rule_match_js_no_url;
1515

16+
#[derive(Debug)]
1617
pub enum ActionsTransform {
1718
Client,
1819
Server,

0 commit comments

Comments
 (0)