🔧 Create separate Vite config JS according to https://github.com/sveltejs/kit/issues/928

This commit is contained in:
Dan6erbond 2021-05-25 18:27:26 +02:00
parent eb7bb1345e
commit 83d23a5a4b

8
app/vite.config.cjs Normal file
View File

@ -0,0 +1,8 @@
const pkg = require("./package.json");
/** @type {import('vite').UserConfig} */
export default {
ssr: {
noExternal: Object.keys(pkg.dependencies || {}),
},
};