From 5f92f1729b356b8ce5cd8fff5b8f602888437355 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Mon, 25 Nov 2024 09:26:23 -0500 Subject: [PATCH] fix(rspack): outputHashing should default to 'all' #29011 (#29058) ## Current Behavior Current default for outputHashing is set to 'none'. This means that both executor and plugin usage will output file names that will not bust browser cache. ## Expected Behavior Set default for `outputHashing` to 'all' to ensure all outputted files are hashed allowing for cache busting. ## Related Issue(s) Fixes #29011 --- packages/rspack/src/plugins/utils/apply-base-config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rspack/src/plugins/utils/apply-base-config.ts b/packages/rspack/src/plugins/utils/apply-base-config.ts index 030035bbb0abb..fdcf46b0fb332 100644 --- a/packages/rspack/src/plugins/utils/apply-base-config.ts +++ b/packages/rspack/src/plugins/utils/apply-base-config.ts @@ -46,6 +46,7 @@ export function applyBaseConfig( options.memoryLimit ??= 2048; options.transformers ??= []; options.progress ??= true; + options.outputHashing ??= 'all'; applyNxIndependentConfig(options, config);