app/
main.go
main.ts
// main.ts
// @ts-ignore
import ("main.go").then(({ main }) => main());
import { defineConfig } from "vite";
import goWasm from "@go-courier/rollup-plugin-go-wasm";
export default defineConfig({
root: "./app",
build: {
assetsDir: "static",
},
plugins: [
goWasm({
// don't added this if play with rollup
importWasmSuffix: "?url",
}),
],
});