27 lines
573 B
TypeScript
27 lines
573 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import wasm from "vite-plugin-wasm";
|
|
import topLevelAwait from "vite-plugin-top-level-await";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss(), wasm(), topLevelAwait()],
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
"/ws": {
|
|
target: "ws://localhost:18789",
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ["symclaw_wasm"],
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
external: ["env"],
|
|
},
|
|
},
|
|
});
|