Example-Automerge-App/vite.config.ts

25 lines
461 B
TypeScript

import { defineConfig } from "vite"
import { svelte } from '@sveltejs/vite-plugin-svelte'
import wasm from "vite-plugin-wasm"
import topLevelAwait from "vite-plugin-top-level-await"
export default defineConfig({
// customize this to your repo name for github pages deploy
base: "",
build: {
target: "esnext",
},
plugins: [
wasm(),
topLevelAwait(),
svelte()
],
worker: {
format: "es",
plugins: () => [svelte()],
},
})