Codegen-phase middleware: runs every plugin's onPrepare hook.
Prepended to every builder pipeline (build, dev, preview, console), because codegen is needed
wherever the app is assembled, dev included. It writes generated files and stashes the modules
and blueprint statements the entry generators weave into the built app. Auto-discovered plugins
are announced here, so a build never silently runs first-party build code the developer cannot see.
Codegen-phase middleware: runs every plugin's
onPreparehook.Prepended to every builder pipeline (build, dev, preview, console), because codegen is needed wherever the app is assembled, dev included. It writes generated files and stashes the modules and blueprint statements the entry generators weave into the built app. Auto-discovered plugins are announced here, so a build never silently runs first-party build code the developer cannot see.