char-slop/chordpad.vibed.software
git clone https://git.t4t.associates/char-slop/chordpad.vibed.software
3c7bc6e
main
1import deno from "@deno/vite-plugin" ; 2import { defineConfig } from "vite" ; 3 4// vite reads neither deno.json's compilerOptions nor (for the dep scanner) its own oxc config 5const jsx = { runtime :"automatic" , importSource :"@char/aftercare" } as const ; 6 7// TheoryTab pages can't be read cross-origin, so imports fetch them through here 8const proxy = { 9"/hooktheory" :{ 10target :"https://www.hooktheory.com" , 11changeOrigin :true , 12rewrite :( path :string ) => path . replace ( / ^\/hooktheory / , "" ), 13}, 14}; 15 16export default defineConfig ({ 17server :{ proxy}, 18preview :{ proxy}, 19plugins :[ deno ()], 20oxc :{ jsx}, 21optimizeDeps :{ rolldownOptions :{ transform :{ jsx} } }, 22});