Skip to content

perf: minify some pre-bundled packages#6862

Merged
chenjiahan merged 1 commit intomainfrom
minify_compiled_1230
Dec 30, 2025
Merged

perf: minify some pre-bundled packages#6862
chenjiahan merged 1 commit intomainfrom
minify_compiled_1230

Conversation

@chenjiahan
Copy link
Member

Summary

Minify some pre-bundled packages (css-loader / postcss / memfs) to reduce memory usage and install size.

This may affect the debugging experience for these packages, but I rarely need to debug this code, so it seems worth it.

Before

20251230-103042

After

20251230-103031

Checklist

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

Copilot AI review requested due to automatic review settings December 30, 2025 02:31
@netlify
Copy link

netlify bot commented Dec 30, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit c7b07b2
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6953396be7227000083aa29f
😎 Deploy Preview https://deploy-preview-6862--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: 65 (🔴 down 16 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
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 adds minification to three pre-bundled packages (memfs, postcss, and css-loader) to reduce memory usage and install size. The changes are straightforward and follow the existing pattern already used for other packages in the same configuration file.

  • Converts memfs from a simple string entry to an object configuration with minify: true
  • Adds minify: true to the existing postcss configuration
  • Adds minify: true to the existing css-loader configuration

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

@chenjiahan chenjiahan merged commit 8758a08 into main Dec 30, 2025
18 checks passed
@chenjiahan chenjiahan deleted the minify_compiled_1230 branch December 30, 2025 02:43
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.

1 participant