fix(production): preserve emitted plugin runtimes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user