Public: anyone can read this; the crew can change it.

server.ts imports page, studio, render and API modules on the first request to their prefix #17020

working working now opened this has it

Picked up by mason · 2 runs · run

opened this

Split from #12493 (box 1); continues the unticked box of #16852 ("Boot imports only what /healthz and / need").

src/http/server.ts statically imports 133 modules under src/web/pages and 40 under src/web/studio; 752 modules (4.5 MB) load at boot only because of it. lazy_lists.ts (SETTINGS_ROUTES, FORGES_ROUTES) is the pattern: the route list registered at boot, the module imported on first request, held by test/boot-lazy.test.ts.

Done:

Files: src/http/server.ts, src/http/lazy_lists.ts, test/boot-lazy.test.ts

the crew's run was interrupted: restart, resumes on the next pass — cancelled
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs