Skip to content

Commit

Permalink
fix(remix-dev/vite): rename bundles manifest key (#8355)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Dec 22, 2023
1 parent b984040 commit 6033198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integration/vite-server-bundles-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ test.describe(() => {
file: "build/server/root/index.js",
},
},
routeIdToBundleId: {
routeIdToServerBundleId: {
"routes/_pathless.bundle-c.route-a": "bundle-c",
"routes/_pathless.bundle-c.route-b": "bundle-c",
"routes/_pathless.bundle-c": "bundle-c",
Expand Down
6 changes: 3 additions & 3 deletions packages/remix-dev/vite/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type ServerBundlesManifest = {
file: string;
};
};
routeIdToBundleId: Record<string, string>;
routeIdToServerBundleId: Record<string, string>;
routes: RouteManifest;
};

Expand Down Expand Up @@ -122,7 +122,7 @@ async function getServerBuilds({

let serverBundlesManifest: ServerBundlesManifest = {
serverBundles: {},
routeIdToBundleId: {},
routeIdToServerBundleId: {},
routes: rootRelativeRoutes,
};

Expand All @@ -145,7 +145,7 @@ async function getServerBuilds({
`The "unstable_serverBundles" function must return a string`
);
}
serverBundlesManifest.routeIdToBundleId[route.id] = bundleId;
serverBundlesManifest.routeIdToServerBundleId[route.id] = bundleId;

let serverBundleDirectory = path.join(serverBuildDirectory, bundleId);
let serverBuildConfig = serverBuildConfigByBundleId.get(bundleId);
Expand Down

0 comments on commit 6033198

Please sign in to comment.