Something went wrong. Try again.
Monorepo for the nibling.run platform
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>@nibling/kernel — TypeScript type stripping</title> <link rel="stylesheet" href="/demo/demo.css"></head><body> <h1>@nibling/kernel — guest TypeScript via strip-only mode (Node's amaro contract)</h1> <pre id="out"></pre> <pre id="err"></pre> <p>exit: <span id="exit">…</span></p> <small>esm: <code>/app/main.mts</code> — annotations/interfaces/generics erased, <code>import type</code> erased before resolution (one target missing, one types-only), CJS <code>.ts</code> via facade · cjs: <code>require('./legacy-ts.ts')</code> (extensions mandatory — extensionless is MODULE_NOT_FOUND, like real Node) · typed: <code>.ts</code> under a <code>type: "module"</code> package runs as ESM · nm-ts: TypeScript under <code>node_modules</code> refused like real Node · tsx: refused <code>ERR_UNKNOWN_FILE_EXTENSION</code> · enum: refused <code>ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX</code></small>
<!-- Import maps are document-scoped: they wire the PAGE's bare modifiers. Guest node:* resolution inside the worker goes through the builtin registry, and guest ESM specifiers are rewritten to /~/ virtual URLs by the kernel. --> <script type="importmap"> { "imports": { "@nibling/kernel": "/dist/runtime/host.js" } } </script> <script type="module" src="/demo/ts.js"></script></body></html>