Skip to content

perf: enable Rspack incremental build by default#5167

Merged
chenjiahan merged 2 commits intomainfrom
incremental_default_0506
May 6, 2025
Merged

perf: enable Rspack incremental build by default#5167
chenjiahan merged 2 commits intomainfrom
incremental_default_0506

Conversation

@chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented May 6, 2025

Summary

  • Enable Rspack incremental build by default because it is stable enough and can bring HMR performance improvements.
  • Removed the EXPERIMENTAL_RSPACK_INCREMENTAL environment variable

If you run into any issues, you can switch to the safe and stable incremental, which is consistent with previous behavior, by adding the following configuration:

export default defineConfig({
  tools: {
    rspack: {
      experiments: {
        incremental: 'safe',
      },
    },
  },
});

Related Links

Checklist

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

@netlify
Copy link

netlify bot commented May 6, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 7353f03
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/681981bfc3c7e6000839fff7
😎 Deploy Preview https://deploy-preview-5167--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: 64 (🟢 up 17 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 requested a review from ahabhgk May 6, 2025 03:20
@chenjiahan chenjiahan requested a review from ahabhgk May 6, 2025 03:31
@chenjiahan chenjiahan merged commit 88d09d2 into main May 6, 2025
10 of 12 checks passed
@chenjiahan chenjiahan deleted the incremental_default_0506 branch May 6, 2025 03:48
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.

2 participants