()
| 14 | } |
| 15 | |
| 16 | export async function tryModuleLoadPyodide() { |
| 17 | // @ts-ignore |
| 18 | if (typeof loadPyodide == 'undefined') { |
| 19 | // import is a syntax error in non-module context (which we need to be in for Firefox...) |
| 20 | // But we use module context for local dev because... Vite does that. |
| 21 | await eval("import('https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js')") |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | export async function setupPyodide(urls: string[]) { |
| 26 | // @ts-ignore |
no outgoing calls
no test coverage detected