loro/crates/loro-wasm/web-test/vite.config.ts

21 lines
449 B
TypeScript
Raw Normal View History

2022-11-07 15:37:10 +00:00
import { defineConfig } from "vite";
2022-12-12 05:44:49 +00:00
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
2022-11-07 15:37:10 +00:00
import preact from "@preact/preset-vite";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
2022-12-12 05:44:49 +00:00
plugins: [
wasm(),
topLevelAwait(),
preact()
],
2022-11-07 15:37:10 +00:00
server: {
fs: {
// Allow serving files from one level up to the project root
allow: [".."],
},
},
});