fix: use importmap to resolve spessasynth_core bare import
- Add importmap in index.html to map spessasynth_core to CDN URL - Load spessasynth_lib from CDN directly (with importmap resolving deps) - WorkerSynthesizer fallback also uses CDN import - Ensures library and processor use same spessasynth_core version
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
_initInProgress = false;
|
||||
console.warn("[SonicSF] AudioWorklet failed, trying WorkerSynthesizer:", e);
|
||||
try {
|
||||
const mod = await import("https://esm.sh/spessasynth_lib@4.3.1");
|
||||
const mod = await import("https://cdn.jsdelivr.net/npm/spessasynth_lib@4.3.1/dist/index.js");
|
||||
_synthInstance = new mod.WorkerSynthesizer(audioContext);
|
||||
await _synthInstance.isReady;
|
||||
_initialized = true;
|
||||
|
||||
Reference in New Issue
Block a user