/*** IMPORT ------------------------------------------- ***/ import adapter from "@sveltejs/adapter-node"; import { defineConfig } from "vite"; import { sveltekit } from "@sveltejs/kit/vite"; import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; /*** EXPORT ------------------------------------------- ***/ export default defineConfig({ plugins: [ sveltekit({ adapter: adapter(), compilerOptions: { /*** Force runes mode for the project, except for libraries. Can be removed in Svelte 6. ***/ runes: ({ filename }) => filename.split(/[/\\]/).includes("node_modules") ? undefined : true }, preprocess: [vitePreprocess()] }) ], server: { allowedHosts: ["scilab.local"] } }); // //// import // import { sveltekit } from "@sveltejs/kit/vite"; // import type { UserConfig } from "vite"; // //// export // export default { // json: { // namedExports: true // }, // plugins: [sveltekit()], // server: { // fs: { // allow: [ // "package.json", // "sass" // ] // } // } // } satisfies UserConfig;