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
7// layout): each repo carries an instrument.json manifest and MATLAB
8// sources that midiboot imports at build time via import.meta.glob, so
9// the dev server must be allowed to read them from their real path.
10const simulated = realpathSync(resolve(import.meta.dirname, '../../simulated_instruments'));
12export default defineConfig({
13 base: './',
14 plugins: [react()],
78851f6Replace instrawave with simulated instruments driven by manifestsJeremy Magland 15 server: { fs: { allow: [import.meta.dirname, simulated] } },
0ad1ec1midiboot: in-browser MIDI workstation with pluggable instrumentsJeremy Magland 16 build: { target: 'es2022' },
17});