15 lines
324 B
JavaScript
15 lines
324 B
JavaScript
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
import { defineConfig } from 'vite';
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
|
|
const repoRoot = fileURLToPath(new URL('../..', import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
server: {
|
|
fs: {
|
|
allow: [repoRoot],
|
|
},
|
|
},
|
|
});
|