@@ -56,11 +56,15 @@ identical to v1.
5656Rspack 2 moved the persistent cache configuration from ` experiments.cache `
5757to top-level ` cache ` (same shape) and ** silently ignores** the legacy key.
5858
59- - ` getRspackCacheConfig ` reads both locations, so ` --reset-cache ` works
60- against configs written for either major.
59+ - ` getRspackCacheConfigs ` collects the cache configuration from ** both**
60+ locations, so ` --reset-cache ` clears every candidate directory regardless
61+ of which major the config was written for (with both keys set, the wrong
62+ cache would otherwise survive a reset under v2).
6163- Under Rspack 2 with ` experiments.cache ` set, ` warnLegacyRspackCacheConfig `
62- emits a one-time warning pointing at the top-level option. The config is
63- left untouched — migration is the user's action.
64+ emits a one-time warning pointing at the top-level option — unless the
65+ same config already sets a top-level persistent cache (then the leftover
66+ legacy key is inert and no warning fires). The config is left untouched —
67+ migration is the user's action.
6468
6569## React Refresh
6670
@@ -76,8 +80,10 @@ to top-level `cache` (same shape) and **silently ignores** the legacy key.
7680 vendored at ` packages/repack/vendor/react-refresh/ ` (adapted from
7781 upstream plugin v2.0.2, MIT, with a LICENSE/provenance file). The
7882 ` vendor/ ` directory ships as-is via ` package.json#files ` and is excluded
79- from linting and the babel build. There is no dependency on
80- ` @rspack/plugin-react-refresh@1 ` .
83+ from linting and the babel build. The refresh loader rule excludes the
84+ vendored runtime files themselves (mirroring the official plugin's
85+ self-exclusion) so they are never re-processed in symlinked-workspace
86+ layouts. There is no dependency on ` @rspack/plugin-react-refresh@1 ` .
8187
8288## Tracing / profiling
8389
@@ -87,9 +93,13 @@ Published Rspack 2 binaries do not include the perfetto trace layer, so
8793
8894## Module Federation v1
8995
90- Under Rspack 2, ` @module-federation/runtime-tools ` is no longer installed
91- automatically by ` @rspack/core ` . ` ModuleFederationPluginV1.apply ` verifies
92- it is resolvable and raises an actionable error otherwise.
96+ No changes required. Rspack's delegated ` ModuleFederationPluginV1 ` does not
97+ use ` @module-federation/runtime-tools ` under either major - only the
98+ enhanced MF 1.5 plugin (` container.ModuleFederationPlugin ` ) resolves it,
99+ and that plugin raises its own actionable install error. (An earlier
100+ revision of this design added a resolvability pre-check to
101+ ` ModuleFederationPluginV1.apply ` ; it was dropped after verification -
102+ see the evidence on PR #1400 .)
93103
94104## Types
95105
0 commit comments