import { defineConfig } from "vite"; import wasm from "vite-plugin-wasm"; import topLevelAwait from "vite-plugin-top-level-await"; import preact from "@preact/preset-vite"; import path from "path"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ wasm(), topLevelAwait(), preact() ], server: { fs: { // Allow serving files from one level up to the project root allow: [".."], }, }, });