loro/crates/loro-wasm/web-test/vite.config.ts
2022-12-12 13:44:49 +08:00

20 lines
449 B
TypeScript

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: [".."],
},
},
});