@@ -19,11 +19,13 @@ use swc_core::{
19
19
} ,
20
20
} ;
21
21
use turbo_rcstr:: { RcStr , rcstr} ;
22
- use turbo_tasks:: { FxIndexMap , ResolvedVc , TryFlatJoinIterExt , ValueToString , Vc } ;
22
+ use turbo_tasks:: { FxIndexMap , ResolvedVc , TryFlatJoinIterExt , Vc } ;
23
23
use turbo_tasks_fs:: { self , File , FileSystemPath , rope:: RopeBuilder } ;
24
24
use turbopack_core:: {
25
25
asset:: AssetContent ,
26
- chunk:: { ChunkItem , ChunkItemExt , ChunkableModule , ChunkingContext , EvaluatableAsset } ,
26
+ chunk:: {
27
+ ChunkItem , ChunkItemExt , ChunkableModule , ChunkingContext , EvaluatableAsset , ModuleId ,
28
+ } ,
27
29
context:: AssetContext ,
28
30
file_source:: FileSource ,
29
31
ident:: AssetIdent ,
@@ -168,7 +170,11 @@ async fn build_manifest(
168
170
let key = format ! ( "app{page_name}" ) ;
169
171
170
172
let actions_value = actions. await ?;
171
- let loader_id = chunk_item. id ( ) . to_string ( ) . await ?;
173
+ let loader_id = chunk_item. id ( ) . await ?;
174
+ let loader_id = match & * loader_id {
175
+ ModuleId :: Number ( id) => ActionManifestModuleId :: Number ( * id) ,
176
+ ModuleId :: String ( id) => ActionManifestModuleId :: String ( id) ,
177
+ } ;
172
178
let mapping = match runtime {
173
179
NextRuntime :: Edge => & mut manifest. edge ,
174
180
NextRuntime :: NodeJs => & mut manifest. node ,
@@ -190,7 +196,7 @@ async fn build_manifest(
190
196
entry. workers . insert (
191
197
& key,
192
198
ActionManifestWorkerEntry {
193
- module_id : ActionManifestModuleId :: String ( loader_id. as_str ( ) ) ,
199
+ module_id : loader_id. clone ( ) ,
194
200
is_async : * async_module_info. is_async ( chunk_item. module ( ) ) . await ?,
195
201
exported_name : name. as_str ( ) ,
196
202
filename : filename. as_str ( ) ,
0 commit comments