mirror of
https://github.com/LukeHagar/sveltekit-og.git
synced 2025-12-06 12:47:49 +00:00
22 lines
331 B
TypeScript
22 lines
331 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import type { UserConfig } from 'vite';
|
|
|
|
const config: UserConfig = {
|
|
plugins: [sveltekit()],
|
|
define: {
|
|
_a: 'undefined'
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
external: ["@resvg/resvg-js"]
|
|
}
|
|
},
|
|
optimizeDeps: {
|
|
exclude: [
|
|
"@resvg/resvg-js"
|
|
]
|
|
}
|
|
};
|
|
|
|
export default config;
|