@@ -16,17 +16,19 @@ interface GenerateServerFnResolverModuleOptions {
1616function getResolverManifestEntries (
1717 serverFnsById : Record < string , ServerFn > ,
1818) : Array < ResolverManifestEntry > {
19- return Object . entries ( serverFnsById )
20- // Sort entries by ID so that the generated manifest has a stable, deterministic order.
21- // Non-deterministic ordering causes the compiled hash of the same source file to change
22- // between builds, breaking content-addressed caching and reproducible deployments.
23- . sort ( ( [ a ] , [ b ] ) => ( a < b ? - 1 : a > b ? 1 : 0 ) )
24- . map ( ( [ id , fn ] ) => ( {
25- id,
26- functionName : fn . functionName ,
27- extractedFilename : fn . extractedFilename ,
28- isClientReferenced : fn . isClientReferenced ?? true ,
29- } ) )
19+ return (
20+ Object . entries ( serverFnsById )
21+ // Sort entries by ID so that the generated manifest has a stable, deterministic order.
22+ // Non-deterministic ordering causes the compiled hash of the same source file to change
23+ // between builds, breaking content-addressed caching and reproducible deployments.
24+ . sort ( ( [ a ] , [ b ] ) => ( a < b ? - 1 : a > b ? 1 : 0 ) )
25+ . map ( ( [ id , fn ] ) => ( {
26+ id,
27+ functionName : fn . functionName ,
28+ extractedFilename : fn . extractedFilename ,
29+ isClientReferenced : fn . isClientReferenced ?? true ,
30+ } ) )
31+ )
3032}
3133
3234function getClientReferencedCheck (
0 commit comments