Bundle-phase middleware: runs every plugin's onBundle hook.
Added only to the production build pipelines, never to dev/preview, because it must fire when the
app is actually bundled, not on every build task. It runs after RunStonePluginsPrepareMiddleware
and before the bundler, so a plugin can tune the bundler (e.g. mutate stone.builder.rollup/vite).
Bundle-phase middleware: runs every plugin's
onBundlehook.Added only to the production build pipelines, never to dev/preview, because it must fire when the app is actually bundled, not on every build task. It runs after RunStonePluginsPrepareMiddleware and before the bundler, so a plugin can tune the bundler (e.g. mutate
stone.builder.rollup/vite).