fix(web): keep unattended wasm module batching incremental
This commit is contained in:
@@ -450,7 +450,7 @@ def native_geometry_batch(inventory: dict) -> dict | None:
|
||||
and unit.get("coverageStatus") != "VERIFIED"
|
||||
and unit.get("kind") == "node"
|
||||
and isinstance(unit.get("identifier"), str)
|
||||
and (unit["identifier"].startswith("GeometryNode") or unit["identifier"].startswith("FunctionNode"))
|
||||
and (unit["identifier"].startswith("GeometryNode") or unit["identifier"].startswith("FunctionNode") or unit["identifier"].startswith("Node"))
|
||||
]
|
||||
if not candidates:
|
||||
return None
|
||||
|
||||
@@ -10,11 +10,13 @@ test("preloads completed WASM and loads the debug module independently", async (
|
||||
const before = await client.snapshot();
|
||||
const pending = before.status;
|
||||
const loaded = await client.loadDebugWasmModule("debug-incremental");
|
||||
const splitLoaded = await client.loadDebugWasmModule("debug-incremental-secondary");
|
||||
return {
|
||||
pending,
|
||||
loaded,
|
||||
debug: loaded.find((module) => module.id === "debug-incremental"),
|
||||
completed: loaded.filter((module) => module.lifecycle === "complete"),
|
||||
debug: splitLoaded.find((module) => module.id === "debug-incremental"),
|
||||
secondary: splitLoaded.find((module) => module.id === "debug-incremental-secondary"),
|
||||
completed: splitLoaded.filter((module) => module.lifecycle === "complete"),
|
||||
};
|
||||
}
|
||||
finally { await client.shutdown(); }
|
||||
@@ -25,4 +27,6 @@ test("preloads completed WASM and loads the debug module independently", async (
|
||||
expect(result.debug?.status).toBe("loaded");
|
||||
expect(result.debug?.lifecycle).toBe("debug");
|
||||
expect(result.debug?.byteLength).toBeGreaterThan(0);
|
||||
expect(result.secondary?.status).toBe("loaded");
|
||||
expect(result.secondary?.byteLength).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user