Refactor Vite configuration for improved readability and formatting
This commit is contained in:
@@ -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(),
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user