mast/mast-react/vite.config.ts
Anish Lakhwara f7b2d09c4b init react
2024-10-26 00:00:30 -07:00

37 lines
709 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
build: {
target: "esnext",
},
optimizeDeps: {
exclude: ["@vite/client", "@vite/env", "@vlcn.io/crsqlite-wasm"],
esbuildOptions: {
target: "esnext",
},
},
plugins: [
react(),
// VitePWA({
// workbox: {
// globPatterns: [
// "**/*.js",
// "**/*.css",
// "**/*.svg",
// "**/*.html",
// "**/*.png",
// "**/*.wasm",
// ],
// },
// }),
],
server: {
fs: {
strict: false,
},
},
});