Skip to content

Commit

Permalink
add vite config options
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed May 23, 2024
1 parent cf15051 commit f557744
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ import { defineConfig } from 'vite';

export default defineConfig({
plugins: [sveltekit()],
build: {
rollupOptions: {
external: ['@resvg/resvg-js']
}
},
ssr: { external: ['@resvg/resvg-js'] },
optimizeDeps: { exclude: ['@resvg/resvg-js'] }
});

0 comments on commit f557744

Please sign in to comment.