Skip to main content

Crate ferrijs_bundle

Crate ferrijs_bundle 

Source
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 QuickJS bytecode once.
cache
Cross-process disk cache for compiled QuickJS bytecode.

Structs§

CompiledModule
A module compiled to QuickJS bytecode, plus the source map to translate bundled positions back to source. What a bundler produces and crate::Runtime::eval_module runs.
LazyMap
A bundle’s source map, parsed the first time something asks to remap.
SourceMapper
A bundle’s position mapping on its own.