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:
+4
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user