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';
78851f6Replace instrawave with simulated instruments driven by manifestsJeremy Magland 6// The simulated instruments live in the sibling collection (the vault
cdfbf5bRender whole tracks through direct-import instrument modulesJeremy Magland 7// layout): each repo carries an instrument/ module implementing the
8// track-render interface plus the MATLAB sources it globs at build time,
9// imported directly by src/instruments/sim.ts, so the dev server must be
10// allowed to read them from their real path.
78851f6Replace instrawave with simulated instruments driven by manifestsJeremy Magland 11const simulated = realpathSync(resolve(import.meta.dirname, '../../simulated_instruments'));
13export default defineConfig({
14 base: './',
15 plugins: [react()],
78851f6Replace instrawave with simulated instruments driven by manifestsJeremy Magland 16 server: { fs: { allow: [import.meta.dirname, simulated] } },
0ad1ec1midiboot: in-browser MIDI workstation with pluggable instrumentsJeremy Magland 17 build: { target: 'es2022' },
18});