web-infra-dev / rspress

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

perf(shared): move `mergeDocConfig` to node utils #1616

Closed chenjiahan closed 1 day ago

chenjiahan commented 2 days ago

Summary

mergeDocConfig is only used by Node.js code, so it can be moved from shared/src/runtime-utils to shared/src/node-utils. This can reduce runtime code and remove lodash methods.

This PR also removed some unused bin from files field.

image

Screenshot 2024-11-20 at 22 08 07

Checklist

netlify[bot] commented 2 days ago

Deploy Preview for aquamarine-blini-95325f ready!

Name Link
Latest commit 8ebc838af624ffbb3b593ba240a82264fddfd409
Latest deploy log https://app.netlify.com/sites/aquamarine-blini-95325f/deploys/673dede98a2d2f0008182a57
Deploy Preview https://deploy-preview-1616--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: 93 (no change from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (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.