Skip to content

Commit

Permalink
🔧 examples: enable remix/react-router future features
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuxu committed Oct 12, 2024
1 parent 216a39f commit 48fc951
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@radix-ui/react-slot": "1.1.0",
"@remix-run/node": "^2.13.1",
"@remix-run/react": "^2.13.1",
"isbot": "^4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"shiki": "1.22.0"
Expand Down
8 changes: 8 additions & 0 deletions apps/examples/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ export default defineConfig({
});
return routes;
},

future: {
v3_singleFetch: true,
v3_lazyRouteDiscovery: true,
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
},
}),
],
resolve: {
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 48fc951

Please sign in to comment.