about summary refs log tree commit diff
path: root/client/svelte.config.cjs
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2021-03-24 09:51:36 +0100
committerMelonai <einebeere@gmail.com>2021-03-24 09:51:36 +0100
commit42860fa15985401825d8d51e73ec497fe5876710 (patch)
treedaa43dd5f4ac77e46dbdd78b1a07811fa5db755c /client/svelte.config.cjs
parent5dde1f55d818a74e838afa37b0e20217b1549a83 (diff)
downloadshorest-42860fa15985401825d8d51e73ec497fe5876710.tar.zst
shorest-42860fa15985401825d8d51e73ec497fe5876710.zip
Update SvelteKit to public beta
Diffstat (limited to 'client/svelte.config.cjs')
-rw-r--r--client/svelte.config.cjs19
1 files changed, 19 insertions, 0 deletions
diff --git a/client/svelte.config.cjs b/client/svelte.config.cjs
new file mode 100644
index 0000000..0daa7bc
--- /dev/null
+++ b/client/svelte.config.cjs
@@ -0,0 +1,19 @@
+const sveltePreprocess = require("svelte-preprocess");
+const static = require("@sveltejs/adapter-static");
+const pkg = require("./package.json");
+
+/** @type {import('@sveltejs/kit').Config} */
+module.exports = {
+    // Consult https://github.com/sveltejs/svelte-preprocess
+    // for more information about preprocessors
+    preprocess: sveltePreprocess(),
+    kit: {
+        adapter: static(),
+        target: "body",
+        vite: {
+            ssr: {
+                noExternal: Object.keys(pkg.dependencies || {}),
+            },
+        },
+    },
+};