fix(production): preserve emitted plugin runtimes

This commit is contained in:
2026-08-13 18:00:30 +05:30
parent 94a6b436f5
commit 5106256401
6 changed files with 110 additions and 4 deletions
+5 -1
View File
@@ -961,7 +961,11 @@ async function emitPluginAssets(
runtime: true,
immutable: true,
});
runtimes.push({ ...runtime, entry: undefined, source: undefined, publicPath });
// The emitted runtime is served from its content-addressed public path.
// Keep an empty source marker so @wrnexus/plugin can normalize this
// already-emitted descriptor during production HTML rendering without
// trying to resolve the original build-time source on the deploy host.
runtimes.push({ ...runtime, entry: undefined, source: "", publicPath });
}
for (const asset of contributions.assets) {