/** * Stands in for alphaTab's Environment module (src/Environment.ts) in RiffDex's importer bundle. * * alphaTab's own Environment sets up browser rendering, fonts, audio workers and polyfills when it loads. Under React * Native, which defines `window`, its polyfills patch `Element.prototype` and the app crashes at start-up with * "ReferenceError: Element is not defined". The importers RiffDex uses read only these two values, so this module * gives them and nothing else. scripts/alphatab/build-importer.mjs puts it in place of the original. */ export class Environment { public static readonly scriptFile: string | null = null; public static readonly fontDirectory: string | null = null; }