Skip to main content

Module aot

Module aot 

Source
Expand description

Ahead-of-time compilation (node --build).

Precompiles the script to fusevm bytecode, warms the on-disk cache (cache.rs) so subsequent runs skip lex/parse/lower, and — via fusevm’s aot feature (a native-object emitter linked against the node-js staticlib) — emits a standalone native executable that carries the node-js builtin dispatch and the fusevm AOT runtime. The report below is explicit user-requested output.

Functions§

build
Precompile file to a standalone native executable next to the source, and warm the bytecode cache. Returns a one-line report of what was built.