Skip to content

perf(fmt): precompile override matchers - #151

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/optimize-fmt-override-matcher
Aug 3, 2026
Merged

perf(fmt): precompile override matchers#151
chenjiahan merged 1 commit into
mainfrom
chenjiahan/optimize-fmt-override-matcher

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Formatter overrides are currently regrouped and compiled for every discovered file, and base options are copied even when no override matches. This PR compiles basename and path matchers once during config normalization and lazily clones options on the first effective match while preserving the existing micromatch semantics. It also adds focused coverage for matcher behavior and option reuse.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63b375a
Status: ✅  Deploy successful!
Preview URL: https://ef651232.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-optimize-fmt-over.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit d7cea9b into main Aug 3, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/optimize-fmt-override-matcher branch August 3, 2026 07:05
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