Skip to content

perf(fmt): cache unsupported extensionless files by content - #244

Open
chenjiahan wants to merge 2 commits into
mainfrom
chenjiahan/perf-fmt-cache-extensionless-unsupported
Open

perf(fmt): cache unsupported extensionless files by content#244
chenjiahan wants to merge 2 commits into
mainfrom
chenjiahan/perf-fmt-cache-extensionless-unsupported

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR makes unsupported parser cache entries content-aware for extensionless files, since Prettier may infer a parser from a shebang. Dotted filenames keep the path-only fast path, while extensionless entries store a content hash and invalidate when their contents change. Legacy path-only entries for extensionless files are ignored, and the cache documentation is updated.

Related Links

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 294c4b2
Status: ✅  Deploy successful!
Preview URL: https://82744931.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-fmt-cache-ex.rstack-cli.pages.dev

View logs

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