diff --git a/packages/xarc-app-dev/index.js b/packages/xarc-app-dev/index.js index d4c153df1..64f6a737c 100644 --- a/packages/xarc-app-dev/index.js +++ b/packages/xarc-app-dev/index.js @@ -3,6 +3,7 @@ module.exports = { require, hapiPlugin: require("./lib/webpack-dev-hapi"), + fastifyPlugin: require("./lib/webpack-dev-fastify"), expressMiddleware: require("./lib/webpack-dev-express"), koaMiddleware: require("./lib/webpack-dev-koa") }; diff --git a/packages/xarc-app-dev/lib/dev-admin/admin-server.js b/packages/xarc-app-dev/lib/dev-admin/admin-server.js index 7dee63f42..439324437 100644 --- a/packages/xarc-app-dev/lib/dev-admin/admin-server.js +++ b/packages/xarc-app-dev/lib/dev-admin/admin-server.js @@ -156,11 +156,10 @@ ${proxyItem}M - Show this menu Q - Shutdown handleServerExit(name) { const info = this.getServer(name); if (info._child) { + const { pid } = info._child; info._child.once("exit", (code, signal) => { const signalText = signal ? `- signal ${signal}` : ""; - this._io.show( - ck`${name} (PID: ${info._child.pid}) exited code ${code} ${signalText}` - ); + this._io.show(ck`${name} (PID: ${pid}) exited code ${code} ${signalText}`); info._child = undefined; info._starting = false; this._webpackDevRelay.setAppServer(null);