Closed
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Motivation
Rspack 1.2.0-alpha.0 used in Faster 3.7 now supports the experimental persistent cache.
https://github.com/web-infra-dev/rspack/releases/tag/v1.2.0-alpha.0
https://rspack.dev/config/experiments#persistent-cache
We need to modify the following parts:
if (props.currentBundler.name === 'rspack') {
// TODO Rspack only supports memory cache (as of Sept 2024)
// TODO re-enable file persistent cache one Rspack supports it
// See also https://rspack.dev/config/cache#cache
- return undefined;
+ return true;
}
docusaurus/packages/docusaurus/src/webpack/base.ts
Lines 144 to 154 in 97690ab
// @ts-expect-error: Rspack-only, not available in Webpack typedefs
incremental: !isProd && !process.env.DISABLE_RSPACK_INCREMENTAL,
+ cache: {
+ type: 'persistent',
+ // Some extra options
+ },
};
Self-service
- I'd be willing to do some initial work on this proposal myself.