Skip to content

fix: avoid bundling duplicate mrmime package#6809

Merged
chenjiahan merged 1 commit intomainfrom
dedupe_mrmime_1219
Dec 19, 2025
Merged

fix: avoid bundling duplicate mrmime package#6809
chenjiahan merged 1 commit intomainfrom
dedupe_mrmime_1219

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Both @rsbuild/core and sirv depend on the mrmime package. This PR marks it as external to avoid bundling it twice.

Checklist

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

Copilot AI review requested due to automatic review settings December 19, 2025 02:34
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 19, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit a61d507
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6944b9a6ccce1e00086d7551
😎 Deploy Preview https://deploy-preview-6809--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: 74 (🟢 up 9 from production)
Accessibility: 100 (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 project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the bundling process by preventing the mrmime package from being bundled twice. Since both @rsbuild/core and the sirv package depend on mrmime, the change externalizes mrmime in the sirv prebundle configuration to reference the shared mrmime package that's already bundled separately.

  • Adds externalization configuration for mrmime in the sirv prebundle entry
  • Follows the existing pattern used for other shared dependencies (e.g., picocolors, postcss)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit c5cf212 into main Dec 19, 2025
18 checks passed
@chenjiahan chenjiahan deleted the dedupe_mrmime_1219 branch December 19, 2025 02:45
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