Files
gpx.studio/website/vite.config.ts
2025-05-08 14:16:07 +02:00

20 lines
457 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite';
import { enhancedImages } from '@sveltejs/enhanced-img';
import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineConfig({
ssr: {
noExternal: ['gpx'],
},
plugins: [
nodePolyfills({
globals: {
Buffer: true,
},
}),
enhancedImages(),
sveltekit(),
],
});