We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8450da9 commit 870cd11Copy full SHA for 870cd11
packages/rspack/src/config/defaults.ts
@@ -544,6 +544,17 @@ const applyOutputDefaults = (
544
futureDefaults: boolean;
545
}
546
) => {
547
+ // Warn if [contenthash] is used in output.filename in development mode
548
+ if (
549
+ development &&
550
+ typeof output.filename === "string" &&
551
+ output.filename.includes("[contenthash]")
552
+ ) {
553
+ console.warn(
554
+ "[Rspack] Warning: Using [contenthash] in output.filename in development mode will bloat memory. It is recommended to use [name] or [hash] instead."
555
+ );
556
+ }
557
+
558
const getLibraryName = (library: Library): string => {
559
const libraryName =
560
typeof library === "object" &&
0 commit comments