mirror of
https://github.com/LukeHagar/sveltekit-og.git
synced 2025-12-06 04:21:37 +00:00
20 lines
324 B
TypeScript
20 lines
324 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;
|