Skip to content

Commit c2fcdcb

Browse files
ci: apply automated fixes
1 parent b6f8f3b commit c2fcdcb

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

packages/start-plugin-core/src/start-compiler/server-fn-resolver-module.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ interface GenerateServerFnResolverModuleOptions {
1616
function 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

3234
function getClientReferencedCheck(

0 commit comments

Comments
 (0)