mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
MicroPython as CDN (#1521)
This commit is contained in:
committed by
GitHub
parent
bccd5e3750
commit
d6b1c393f6
@@ -14,7 +14,8 @@ const type = "micropython";
|
||||
/* c8 ignore start */
|
||||
export default {
|
||||
type,
|
||||
module: () => `http://localhost:8080/micropython/micropython.mjs`,
|
||||
module: (version = "1.20.0-239") =>
|
||||
`https://cdn.jsdelivr.net/npm/@micropython/micropython-webassembly-pyscript@${version}/micropython.mjs`,
|
||||
async engine({ loadMicroPython }, config, url) {
|
||||
const { stderr, stdout, get } = stdio();
|
||||
url = url.replace(/\.m?js$/, ".wasm");
|
||||
|
||||
Reference in New Issue
Block a user