perf(cli): bundle runtime entries to reduce Windows startup I/O (#1996)

Bundle ordinary CLI and output entries to reduce Windows module filesystem resolution while preserving source URLs, lazy loading and worker resources. Keep release identity in its shared owning module.

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
Ysopwnable
2026-10-12 09:25:27 +08:00
committed by GitHub
co-authored by Kaoru0822
parent 6611bcf6e8
commit d93fbda390
13 changed files with 243 additions and 139 deletions
+4 -1
View File
@@ -103,9 +103,12 @@ export const createBrowserScenarioProvider = () =>
const composition = pathToFileURL(
root + "/dist/composition/browserScenario.js",
).href;
const bundledComposition = pathToFileURL(
root + "/dist/cli-runtime/composition__browserScenario-",
).href;
registerHooks({
load(url, context, nextLoad) {
if (url === composition)
if (url === composition || url.startsWith(bundledComposition))
return {
format: "module",
shortCircuit: true,