The subset of TeaVM's generated *.wasm-runtime.js that bytebox drives. Build with
modularRuntime = true so the file is an ES module rather than a global assignment.
Only defaults is used. The generated load is not: it probes for JS String Builtins by
compiling a module from bytes, which workerd refuses at request time; it takes the Node branch
on any compatibility date from 2026-08-04 because nodejs_compat defines process; and it
resolves the program's JavaScript imports with a dynamic import() of a specifier read out of
a wasm custom section, which no bundler can follow.
The subset of TeaVM's generated
*.wasm-runtime.jsthat bytebox drives. Build withmodularRuntime = trueso the file is an ES module rather than a global assignment.Only
defaultsis used. The generatedloadis not: it probes for JS String Builtins by compiling a module from bytes, which workerd refuses at request time; it takes the Node branch on any compatibility date from 2026-08-04 becausenodejs_compatdefinesprocess; and it resolves the program's JavaScript imports with a dynamicimport()of a specifier read out of a wasm custom section, which no bundler can follow.