mast/mast-react/vite.config.ts

37 lines
709 B
TypeScript
Raw Normal View History

2024-10-26 00:00:30 -07:00
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,
},
},
});