mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 15:43:25 +00:00
20 lines
457 B
TypeScript
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(),
|
|
],
|
|
});
|