diff options
Diffstat (limited to 'web/pw-server/svelte.config.js')
-rw-r--r-- | web/pw-server/svelte.config.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/pw-server/svelte.config.js b/web/pw-server/svelte.config.js index b6a2cf8..f0e3c27 100644 --- a/web/pw-server/svelte.config.js +++ b/web/pw-server/svelte.config.js @@ -2,6 +2,7 @@ import adapter from "@sveltejs/adapter-auto"; import preprocess from "svelte-preprocess"; import { viteCommonjs } from "@originjs/vite-plugin-commonjs"; import wasmPack from "vite-plugin-wasm-pack"; +import { isoImport } from "vite-plugin-iso-import"; /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -17,6 +18,7 @@ const config = { ssr: false, vite: { plugins: [ + isoImport(), wasmPack([], ["planetwars-rs"]), viteCommonjs({ transformMixedEsModules: true, |