MicroPython as CDN (#1521)

This commit is contained in:
Andrea Giammarchi
2023-06-19 12:06:15 +02:00
committed by GitHub
parent bccd5e3750
commit d6b1c393f6
5 changed files with 6 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ export const interpreter = new Proxy(new Map(), {
const [type, ...rest] = id.split("@");
const interpreter = registry.get(type);
const url = /^https?:\/\//i.test(rest)
? rest[0]
? rest.join("@")
: interpreter.module(...rest);
map.set(id, {
url,