Expand description
The front-end a ferrijs host runs real projects through: rolldown
bundles TypeScript and node_modules into one ESM chunk, the chunk
is compiled to QuickJS bytecode once, and the bytecode is cached on
disk under an ABI tag so an unchanged tree skips both steps.
Re-exports§
pub use bundle::BundledSource;pub use bundle::Bundler;pub use bundle::BundlerOptions;pub use bundle::is_typescript_path;pub use bundle::source_is_es_module;pub use cache::BytecodeCache;pub use cache::CacheEntry;pub use cache::abi_tag;pub use cache::entry_key;pub use cache::input_set;pub use cache::inputs_fingerprint;pub use cache::source_stamp;
Modules§
- bundle
- rolldown bundle + tree-shake + TypeScript -> one ESM module ->
compiled to
QuickJSbytecode once. - cache
- Cross-process disk cache for compiled
QuickJSbytecode.
Structs§
- Compiled
Module - A module compiled to
QuickJSbytecode, plus the source map to translate bundled positions back to source. What a bundler produces andcrate::Runtime::eval_moduleruns. - LazyMap
- A bundle’s source map, parsed the first time something asks to remap.
- Source
Mapper - A bundle’s position mapping on its own.