infojunkie / musicxml-player

A TypeScript component that loads and plays MusicXML files in the browser using Web Audio and Web MIDI.
https://blog.karimratib.me/demos/musicxml/
GNU General Public License v3.0
34 stars 6 forks source link

Package `webaudiofont` in the bundle #4

Closed infojunkie closed 1 year ago

infojunkie commented 1 year ago

Right now, Rollup is not able to include module webaudiofont in the bundle. To include it, it is necessary to a) explicitly include it as a <script> include, and b) declare it in the Rollup externalGlobals settings. This needs to be fixed.

infojunkie commented 1 year ago

Take a look at other examples of including it, e.g. https://github.com/Financial-Times/g-components/blob/main/src/data-sonification/webaudiofont.js

infojunkie commented 1 year ago

Alternatively, move to ES6 modules and avoid bundling altogether. This will be a perfect opportunity to remove rollup that's been a real pita.

infojunkie commented 1 year ago

Superseded by #17