INNER CODE UNIT · TypeScript
startBundler
extension-js/extension.js · programs/develop/dev-server/index.ts:1115
async function startBundler(server: RspackDevServer) {
let startTimeout: NodeJS.Timeout | undefined
try {
startTimeout = setTimeout(() => {
console.error(messages.devServerStartTimeout(START_TIMEOUT_MS))
}, START_TIMEOUT_MS)
// The probe's listener held the port through config load and compiler
// creation; the real bind can only take it once we let go.
await portManager.releaseReservedPort()
await server.start()
if (startTimeout) clearTimeout(startTimeout)
} catch (error) {
if (startTimeout) clearTimeout(startTimeout)
metadata.writeError(