forked from ProjectSegfault/website
20 lines
365 B
TypeScript
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;
|