failed to load config from .../my-project/vite.config.ts
error when starting dev server:
TypeError: wasm is not a function. (In 'wasm()', 'wasm' is undefined)
at module code (.../my-project/vite.config.ts.timestamp-....mjs:7:11)
at processTicksAndRejections (:1:1302)
error: script "dev" exited with code 1 (SIGHUP)
config file
// vite.config.ts
import { defineConfig } from "vite"
import { sveltekit } from "@sveltejs/kit/vite"
import wasm from "vite-plugin-wasm";
export default defineConfig({
plugins: [sveltekit(),wasm()],
})
wasm is undefined when using bun v1.0.0
command used: $ bun run "$(bun pm bin)/vite" dev
config file
standalone bun example