diff --git a/vite.config.ts b/vite.config.ts index 81a18ce..d8ada09 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,13 @@ import { viteCommonjs } from "@originjs/vite-plugin-commonjs"; import { defineConfig } from "vite"; const config = defineConfig({ - plugins: [sveltekit(), unoCSS(), viteCommonjs()], + plugins: [ + sveltekit(), + unoCSS(), + viteCommonjs({ + include: ["pg", "knex"] + }) + ], ssr: { noExternal: ["pg"] }