Skip to content

perf(fmt): reduce formatter bundle size - #168

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/perf-minify-fmt-worker
Aug 4, 2026
Merged

perf(fmt): reduce formatter bundle size#168
chenjiahan merged 3 commits into
mainfrom
chenjiahan/perf-minify-fmt-worker

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

This PR reduces the formatter CLI package footprint by fully minifying fmt.js, fmtPlugins.js, and sortPackageJsonPlugin.js, while preserving main's minification of staged.js. The three formatter bundles decrease from 251,773 bytes to 114,809 bytes, a 54.4% reduction.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d62fbd
Status: ✅  Deploy successful!
Preview URL: https://ff34e7a9.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-minify-fmt-w.rstack-cli.pages.dev

View logs

@chenjiahan chenjiahan changed the title perf(fmt): reduce worker bundle size perf(fmt): reduce formatter bundle size Aug 4, 2026
@chenjiahan
chenjiahan merged commit f5e8f88 into main Aug 4, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-minify-fmt-worker branch August 4, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant