aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/svelte.config.js
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-02-07 20:56:08 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-02-07 20:56:08 +0100
commit4feebe50430236a331b439c31af13d0d390be805 (patch)
tree70ea366cb9b2f105599a6ca5805e86737c9aed36 /web/pw-server/svelte.config.js
parentd45699189ecafe30500fd7770a45b5043077f58b (diff)
downloadplanetwars.dev-4feebe50430236a331b439c31af13d0d390be805.tar.xz
planetwars.dev-4feebe50430236a331b439c31af13d0d390be805.zip
keep persistent EditorSession on demo page
Diffstat (limited to 'web/pw-server/svelte.config.js')
-rw-r--r--web/pw-server/svelte.config.js2
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,