Imporve HMR Post-build function speed

This commit is contained in:
2026-03-30 05:44:34 +01:00
parent 2b170d24e1
commit 86d4bb8d6c
16 changed files with 192 additions and 99 deletions
+2 -1
View File
@@ -14,8 +14,9 @@ export default async function serverPostBuildFn() {
}
const target_artifact = global.BUNDLER_CTX_MAP[controller.target_map.local_path];
const mock_req = new Request(controller.page_url);
const { serverRes, bundledMap, module, root_module } = await grabPageComponent({
const { serverRes } = await grabPageComponent({
req: mock_req,
return_server_res_only: true,
});
const final_artifact = {
..._.omit(controller, ["controller"]),