web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.19k stars 108 forks source link

refactor: when ssg build, init only one rsbuild instance #1169

Open SoonIter opened 2 weeks ago

SoonIter commented 2 weeks ago

Summary

make clientBuilder and serverBuilder merged into one rsbuild builder

some benefits

  1. make DEBUG mode align with Rsbuild, and debug the ssg build easily
  2. performance better (to be measured)
  3. more maintainable

Related Issue

close #1167

Checklist

netlify[bot] commented 2 weeks ago

Deploy Preview for aquamarine-blini-95325f ready!

Name Link
Latest commit f686961df2147ca17bd36276b6d6ff637abadd6d
Latest deploy log https://app.netlify.com/sites/aquamarine-blini-95325f/deploys/666891e16832130008b6c1ba
Deploy Preview https://deploy-preview-1169--aquamarine-blini-95325f.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 94 (🟢 up 5 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

SoonIter commented 1 week ago

pending with https://github.com/web-infra-dev/rsbuild/issues/2620

Rspress would be the first show case of Rsbuild multi-environment support (SSG)