about summary refs log tree commit diff
path: root/client/svelte.config.cjs
blob: 0daa7bcda43771e09ddc6712972b65b8470507ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 || {}),
            },
        },
    },
};