0ad1ec1midiboot: in-browser MIDI workstation with pluggable instrumentsJeremy Magland 1import { defineConfig } from 'vite';
2import react from '@vitejs/plugin-react';
8ad9830Placeholder instrawave adapter: drum, dulcimer, chime as instrumentsJeremy Magland 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()],
8ad9830Placeholder instrawave adapter: drum, dulcimer, chime as instrumentsJeremy Magland 14 optimizeDeps: { exclude: ['instrawave'] },
15 server: { fs: { allow: [import.meta.dirname, instrawave] } },
0ad1ec1midiboot: in-browser MIDI workstation with pluggable instrumentsJeremy Magland 16 build: { target: 'es2022' },
17});