import react from '@vitejs/plugin-react'; import { fileURLToPath } from 'node:url'; import { defineConfig } from 'vite'; // The editor's page. The corpus (FILIUS' examples, for the development page // and the browser tests) lies outside the package. export default defineConfig({ root: fileURLToPath(new URL('.', import.meta.url)), base: './', plugins: [react()], server: { fs: { allow: [fileURLToPath(new URL('../..', import.meta.url))] } }, build: { outDir: 'dist', emptyOutDir: true }, });