webcompile/vite.config.ts
2023-01-08 17:42:05 +02:00

20 lines
365 B
TypeScript

import { sveltekit } from "@sveltejs/kit/vite";
import unoCSS from "unocss/vite";
import { viteCommonjs } from "@originjs/vite-plugin-commonjs";
import { defineConfig } from "vite";
const config = defineConfig({
plugins: [
sveltekit(),
unoCSS(),
viteCommonjs({
include: ["pg", "knex"]
})
],
ssr: {
noExternal: ["pg"]
}
});
export default config;