Skip to content

fix(plugin-svgr): SVGs generated with different hash#5016

Merged
chenjiahan merged 4 commits intomainfrom
svgr_hash_0413
Apr 13, 2025
Merged

fix(plugin-svgr): SVGs generated with different hash#5016
chenjiahan merged 4 commits intomainfrom
svgr_hash_0413

Conversation

@chenjiahan
Copy link
Member

Summary

  • Update loader-utils to v3 to allow @rsbuild/plugin-svg to use the same hash function (xxhash64) as Rsbuild, see https://github.com/webpack/loader-utils/releases/tag/v3.0.0
  • Since file-loader and url-loader are no longer maintained, patch file-loader and url-loader to be compatible with loader-utils v3.

Related Links

fix #4610

Checklist

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

@netlify
Copy link

netlify bot commented Apr 13, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 2c7ddb8
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67fb309921bbcb00085bb6cf
😎 Deploy Preview https://deploy-preview-5016--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: 75 (🔴 down 7 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (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 647ee03 into main Apr 13, 2025
11 checks passed
@chenjiahan chenjiahan deleted the svgr_hash_0413 branch April 13, 2025 03:39
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.

[Bug]: Multiple identical SVGs generated with different hash

1 participant