Skip to content

perf(asets-retry): use SWC to transform and minify code#4312

Merged
chenjiahan merged 3 commits intomainfrom
assets_retry_swc_0101
Jan 2, 2025
Merged

perf(asets-retry): use SWC to transform and minify code#4312
chenjiahan merged 3 commits intomainfrom
assets_retry_swc_0101

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Jan 1, 2025

Description

Use SWC to transform and minify code, remove Babel and Terser from dev dependencies.

Bundle Size

Let SWC mangle all function names to reduce bundle size:

  • initialChunkRetry.min.js: 4,915 bytes -> 4,275 bytes
  • asyncChunkRetry.min.j: 4,389 bytes -> 3,351 bytes

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 1, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 75ff912
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67767407f13883000830fa40
😎 Deploy Preview https://deploy-preview-4312--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: 73 (🟢 up 4 from production)
Accessibility: 97 (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 site configuration.

@chenjiahan chenjiahan requested a review from SoonIter January 2, 2025 11:23
@chenjiahan chenjiahan merged commit bf2ed4c into main Jan 2, 2025
@chenjiahan chenjiahan deleted the assets_retry_swc_0101 branch January 2, 2025 13:22
@chenjiahan chenjiahan mentioned this pull request Jan 7, 2025
@chenjiahan chenjiahan mentioned this pull request Jan 21, 2025
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