Skip to content

feat: support for Rspack persistent cache#4501

Merged
chenjiahan merged 4 commits intomainfrom
rspack_persistent_cache_0207
Feb 7, 2025
Merged

feat: support for Rspack persistent cache#4501
chenjiahan merged 4 commits intomainfrom
rspack_persistent_cache_0207

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Rsbuild used to offer a performance.buildCache option, and it only worked with Babel loader cache and webpack cache.

This PR makes performance.buildCache work with Rspack's new experimental persistent cache. It is disabled by default because Rspack's persistent cache is not yet stable.

  • Enable:
export default defineConfig({
  performance: {
    buildCache: true,
  },
});

Related Links

https://rspack.dev/config/experiments#persistent-cache

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Documentation will be updated later.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 7, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 93284ce
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67a60ba086c3780007a753fa
😎 Deploy Preview https://deploy-preview-4501--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 76 (no change from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@chenjiahan chenjiahan merged commit c9e9a26 into main Feb 7, 2025
11 checks passed
@chenjiahan chenjiahan deleted the rspack_persistent_cache_0207 branch February 7, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant