mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-08 17:12:24 +05:30
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;
|