Refactor Vite configuration for improved readability and formatting

This commit is contained in:
2025-01-23 20:37:03 +01:00
parent abef02f275
commit 7bb9c0f774

View File

@@ -3,28 +3,22 @@ import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
declare module "@remix-run/node" {
interface Future {
v3_singleFetch: true;
}
interface Future {
v3_singleFetch: true;
}
}
export default defineConfig({
plugins: [
remix({
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
v3_singleFetch: true,
v3_lazyRouteDiscovery: true
},
/*routes: async (defineRoutes) => {
return defineRoutes((route) => {
route("/", "routes/_index.tsx");
route("/blog/:blog", "routes/blog.tsx");
});
},*/
}),
tsconfigPaths(),
],
plugins: [
remix({
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
v3_singleFetch: true,
v3_lazyRouteDiscovery: true,
},
}),
tsconfigPaths(),
],
});