From 1c466d03e10383489d94317d04f2c5d9cda42728 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Mon, 14 Oct 2024 22:14:49 +0100 Subject: [PATCH] fix(rspack): log compilation errors #28179 (#28429) ## Current Behavior When running serve with Rspack, `stats: false` is being added to `devMiddleware` preventing logs from being output to the terminal. ## Expected Behavior Ensure logs are logged to the devServer ## Related Issue(s) Fixes #28179 --- packages/rspack/src/utils/with-nx.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/rspack/src/utils/with-nx.ts b/packages/rspack/src/utils/with-nx.ts index ff3cbd3fa0e83..cd9939786340c 100644 --- a/packages/rspack/src/utils/with-nx.ts +++ b/packages/rspack/src/utils/with-nx.ts @@ -158,6 +158,10 @@ export function withNx(_opts = {}) { ...(config.devServer ?? {}), port: config.devServer?.port ?? 4200, hot: config.devServer?.hot ?? true, + devMiddleware: { + ...(config.devServer?.devMiddleware ?? {}), + stats: true, + }, } as any, module: { rules: [