// This is a documented workaround that should avoid issues with Vite projects
// https://github.com/wasm-tool/rollup-plugin-rust?tab=readme-ov-file#usage-with-vite
// Also, this effectively disables SSR.
asyncfunctionloadWasm(){letwasmModule;if(!import.meta.env||(import.meta.env&&!import.meta.env.SSR)){wasmModule=awaitimport("../Cargo.toml");}returnwasmModule;}exportdefaultloadWasm;