init opfs and sqlocal as another browser adapter

This commit is contained in:
dswbx
2025-11-25 16:21:16 +01:00
parent 5e5dc62304
commit 36e1bb1867
17 changed files with 844 additions and 110 deletions

View File

@@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import tsconfigPaths from "vite-tsconfig-paths";
import sqlocal from "sqlocal/vite";
// https://vite.dev/config/
// https://sqlocal.dallashoffman.com/guide/setup#vite-configuration
@@ -9,11 +10,16 @@ export default defineConfig({
optimizeDeps: {
exclude: ["sqlocal"],
},
resolve: {
dedupe: ["react", "react-dom"],
},
plugins: [
sqlocal(),
react(),
tailwindcss(),
tsconfigPaths(),
{
/* {
name: "configure-response-headers",
configureServer: (server) => {
server.middlewares.use((_req, res, next) => {
@@ -22,6 +28,6 @@ export default defineConfig({
next();
});
},
},
}, */
],
});