import { defineConfig } from 'vite'; import { realpathSync } from 'node:fs'; import { resolve } from 'node:path'; // instrawave is a file: dependency on the sibling checkout (the vault // layout); it is TypeScript source behind a symlink, so it must be served // from its real path and kept out of prebundling. const instrawave = realpathSync(resolve(import.meta.dirname, '../instrawave')); export default defineConfig({ base: './', optimizeDeps: { exclude: ['instrawave'] }, server: { fs: { allow: [import.meta.dirname, instrawave] } }, build: { target: 'es2022' }, });