diff --git a/pyscript.core/esm/loader.js b/pyscript.core/esm/loader.js index 392300fd..206b5bce 100644 --- a/pyscript.core/esm/loader.js +++ b/pyscript.core/esm/loader.js @@ -15,8 +15,10 @@ export const getRuntime = (id, config) => { /* c8 ignore start */ if (config.endsWith(".json")) { options = fetch(config).then(getJSON); + config = absoluteURL(config); } else if (config.endsWith(".toml")) { options = fetch(config).then(getText).then(parse); + config = absoluteURL(config); } else { try { options = JSON.parse(config);