Skip to content

Commit

Permalink
fix(rspack): outputHashing should default to 'all' #29011 (#29058)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
Coly010 authored Nov 25, 2024
1 parent fc7ee36 commit 5f92f17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rspack/src/plugins/utils/apply-base-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function applyBaseConfig(
options.memoryLimit ??= 2048;
options.transformers ??= [];
options.progress ??= true;
options.outputHashing ??= 'all';

applyNxIndependentConfig(options, config);

Expand Down

0 comments on commit 5f92f17

Please sign in to comment.