webcompile/vite.config.ts

20 lines
365 B
TypeScript
Raw Normal View History

2022-07-06 18:40:25 +05:30
import { sveltekit } from "@sveltejs/kit/vite";
2022-08-08 13:16:52 +05:30
import unoCSS from "unocss/vite";
2023-01-07 23:07:15 +05:30
import { viteCommonjs } from "@originjs/vite-plugin-commonjs";
2022-12-27 20:58:47 +05:30
import { defineConfig } from "vite";
2022-08-08 13:16:52 +05:30
2022-12-27 20:58:47 +05:30
const config = defineConfig({
2023-01-08 21:12:05 +05:30
plugins: [
sveltekit(),
unoCSS(),
viteCommonjs({
include: ["pg", "knex"]
})
],
2023-01-07 23:32:29 +05:30
ssr: {
noExternal: ["pg"]
2023-01-07 23:32:29 +05:30
}
2022-12-27 20:58:47 +05:30
});
2022-07-06 17:18:06 +05:30
2022-07-06 18:40:25 +05:30
export default config;