mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 11:45:28 -05:00
MicroPython as CDN (#1521)
This commit is contained in:
committed by
GitHub
parent
bccd5e3750
commit
d6b1c393f6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user