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