Remix/Single Fetch/Enable Flag

1.0.2Last update Jul 24, 2024
by@jacobparis
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

background illustrationGet Started Now