mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
init opfs and sqlocal as another browser adapter
This commit is contained in:
@@ -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();
|
||||
});
|
||||
},
|
||||
},
|
||||
}, */
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user