(m)
| 16 | const PKG = JSON.parse(readFileSync(new URL("./app/packages.json", import.meta.url))); |
| 17 | // star-import every module key, recursing through the imports/host category containers |
| 18 | const star = (m) => Object.entries(m).flatMap(([k, v]) => (k === "imports" || k === "host" ? star(v) : `from ${k} import *`)); |
| 19 | const PRELUDE = star(PKG).join("\n") + "\n"; |
| 20 | const TYPES = { |
| 21 | ".js": "text/javascript", ".wasm": "application/wasm", ".html": "text/html", |