/ proof-of-concept / midiboot
Sign in
proof-of-concept / midiboot
midiboot / vite.config.ts
17 lines · 645 BBlameHistoryRaw
1import { defineConfig } from 'vite';
2import react from '@vitejs/plugin-react';
3import { realpathSync } from 'node:fs';
4import { resolve } from 'node:path';
6// instrawave is a file: dependency on the sibling checkout (the vault
7// layout); it is TypeScript source behind a symlink, so it must be served
8// from its real path and kept out of prebundling.
9const instrawave = realpathSync(resolve(import.meta.dirname, '../instrawave'));
11export default defineConfig({
12 base: './',
13 plugins: [react()],
14 optimizeDeps: { exclude: ['instrawave'] },
15 server: { fs: { allow: [import.meta.dirname, instrawave] } },
16 build: { target: 'es2022' },
17});
↑↓ move↵openescclose