fix interpreter absoluteURL (#1603)

This commit is contained in:
Jack Zhao
2023-07-19 04:21:44 -07:00
committed by GitHub
parent 413428f535
commit f0e69cbc36

View File

@@ -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);