mirror of
https://github.com/AtHeartEngineer/FreedInk.git
synced 2026-01-08 19:17:54 -05:00
23 lines
432 B
TypeScript
23 lines
432 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { nodePolyfills } from 'vite-plugin-node-polyfills';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
nodePolyfills({
|
|
include: ['path', 'stream', 'util'],
|
|
exclude: ['http'],
|
|
globals: {
|
|
Buffer: true,
|
|
global: true,
|
|
process: true
|
|
},
|
|
overrides: {
|
|
fs: 'memfs'
|
|
},
|
|
protocolImports: true
|
|
})
|
|
]
|
|
});
|