From 1ff7dc89916e6e6b4690122cf82140f097b02ea3 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 7 Nov 2025 15:24:16 +0800 Subject: [PATCH] chore: update comments for pathinfo --- packages/core/src/plugins/output.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/src/plugins/output.ts b/packages/core/src/plugins/output.ts index ee05819b74..23c4a70745 100644 --- a/packages/core/src/plugins/output.ts +++ b/packages/core/src/plugins/output.ts @@ -116,9 +116,8 @@ export const pluginOutput = (): RsbuildPlugin => ({ : posix.join(jsAsyncPath, jsFilename), ) .publicPath(publicPath) - // disable pathinfo to improve compile performance - // the path info is useless in most cases - // see: https://webpack.js.org/guides/build-performance/#output-without-path-info + // `pathinfo` is disabled because Rspack's `moduleId` in development mode already + // contains the path information. Disabling it helps produce cleaner output. .pathinfo(false) // since webpack v5.54.0+, hashFunction supports xxhash64 as a faster algorithm // which will be used as default when experiments.futureDefaults is enabled.