vitejs / vitejs/vite-plugin-react
create official `"use cache"` plugin
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 269
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 19
Description
Not sure what this means but we can somehow polish and generalize this example, so it's usable on Waku, React router, etc.
See also https://github.com/hi-ogawa/vite-plugins/issues/902 for more context.
(Also I'm feeling stacking together transformHoistInlineDirective for "use cache" and internally for "use server" can break something. We want to investigate that.)
Or we can use externally maintained:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the basic example in packages/plugin-rsc/examples/basic/vite.config.ts, especially the linked configuration block, and read the context in vite-plugins issue 902. Investigate how transformHoistInlineDirective handles "use cache" and "use server", including whether stacking them breaks behavior. Done would require a decided, generalized official plugin approach that works across the cited integrations, but the issue does not define acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript, vite
- Domain
- build-system, frontend, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100