Skip to content

Commit

Permalink
fix(webpack-rsc): fix ssrManifest.moduleLoading
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jun 24, 2024
1 parent b5937b4 commit 7794ef5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion webpack-rsc/src/lib/client-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export async function getClientManifest() {
);
const ssrManifest: SsrManifest = {
moduleMap: ssrModuleMap,
moduleLoading: null,
moduleLoading: {
prefix: "/assets/",
crossOrigin: null,
},
};

return { browserManifest, ssrManifest };
Expand Down
6 changes: 4 additions & 2 deletions webpack-rsc/src/types/react-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ export type ModuleMap = {

export interface SsrManifest {
moduleMap: ModuleMap;
// TODO
moduleLoading: null;
moduleLoading: {
prefix: string;
crossOrigin: null;
};
}

export type CallServerCallback = (id: string, args: unknown[]) => unknown;

0 comments on commit 7794ef5

Please sign in to comment.