From 4feebe50430236a331b439c31af13d0d390be805 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Mon, 7 Feb 2022 20:56:08 +0100 Subject: keep persistent EditorSession on demo page --- web/pw-server/svelte.config.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/pw-server/svelte.config.js') 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, -- cgit v1.2.3