Skip to content

Commit 6ce43ea

Browse files
feat: add universal IDs to client nodes
1 parent 293392b commit 6ce43ea

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/kit/src/core/sync/write_client_manifest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export function write_client_manifest(kit, manifest_data, output, metadata) {
2525
if (node.universal) {
2626
declarations.push(
2727
`import * as universal from ${s(relative_path(`${output}/nodes`, node.universal))};`,
28-
'export { universal };'
28+
'export { universal };',
29+
`export const universal_id = ${s(node.universal)};`
2930
);
3031
}
3132

packages/kit/src/types/internal.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export interface CSRPageNode {
111111
load?: Load;
112112
trailingSlash?: TrailingSlash;
113113
};
114+
universal_id?: string;
114115
}
115116

116117
export type CSRPageNodeLoader = () => Promise<CSRPageNode>;

0 commit comments

Comments
 (0)