fix(build): serve stable aliases for lazy plugin runtimes

This commit is contained in:
Clintchiz committed 2026-09-25 01:38:33 +05:30
1 parent ab0a4ff27d
commit f4eaf416be
4 files changed
+13 -2

No files matched your search

@@ -83,6 +83,10 @@ export default {
const asset = await fetch(`http://127.0.0.1:${port}${assetPath}`);
expect(asset.status).toBe(200);
expect(await asset.text()).toContain("window.__runtimeFixture = true");
const lazyAsset = await fetch(`http://127.0.0.1:${port}/__wrnexus/assets/runtime-fixture.js`);
expect(lazyAsset.status).toBe(200);
expect(await lazyAsset.text()).toContain("window.__runtimeFixture = true");
expect(lazyAsset.headers.get("cache-control") ?? "").not.toContain("immutable");
} finally {
proc.kill();
await proc.exited;