From 42860fa15985401825d8d51e73ec497fe5876710 Mon Sep 17 00:00:00 2001 From: Melonai Date: Wed, 24 Mar 2021 09:51:36 +0100 Subject: Update SvelteKit to public beta --- client/svelte.config.cjs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 client/svelte.config.cjs (limited to 'client/svelte.config.cjs') 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 || {}), + }, + }, + }, +}; -- cgit 1.4.1