Refactor bundled development so creating an application bundle does not depend on an HTTP server already listening. Server-specific values, including the configured port, must not be embedded in application chunks. This must work when Vite is created in middleware mode before any HTTP listener exists, while preserving the application's generated entry code and normal bundled-development behavior.