20 lines
379 B
TypeScript
20 lines
379 B
TypeScript
import { defineConfig } from "vite"
|
|
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()],
|
|
|
|
worker: {
|
|
format: "es",
|
|
plugins: () => [wasm()],
|
|
},
|
|
})
|