import { fileURLToPath } from "node:url"; import { defineConfig } from "vite"; // Instruments are imported live from the sibling modal-synth project. const modalSynth = fileURLToPath(new URL("../modal-synth/src", import.meta.url)); export default defineConfig({ base: "./", resolve: { alias: { "@modal-synth": modalSynth } }, server: { fs: { allow: [".", modalSynth] } }, worker: { format: "es" }, build: { target: "es2022" }, });