mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 13:39:12 +00:00
20 lines
449 B
TypeScript
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: [".."],
|
|
},
|
|
},
|
|
});
|