Remix/Single Fetch/Enable Flag
Codemod verified
Official codemod published by a verified account. Learn more.
Remix-run/react
Remix / Single Fetch / Enable Flag
Enables the single fetch flag in the Remix Vite config.
Usage
You can use this codemod with the following command:
codemod remix/single-fetch/enable-flag --include="vite.config.ts"
Specifying the --include
flag is optional but recommended so codemod doesn't
have to look through your whole project.
Examples
return defineConfig({+ future: {+ unstable_singleFetch: true+ }})
Affected files
vite.config.ts
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community