rocketll
rocketll•14mo ago

Using `deno_emit` from Rust: building import graph

I'm trying to use deno_emit from Rust to bundle modules. I already evaluated these modules with deno_runtime, is there any way to extract and use the module graph and transpiled code that was already built during evaluation? Or perhaps reuse deno_core::ModuleLoader for deno_graph::source::Loader? I'm having a hard time figuring out how to use deno_emit and deno_graph from Rust, so I'm hoping there's an easier way to bundle code since I already evaluated the modules.
1 Reply
Deno AI Helper
Deno AI Helper•14mo ago
I'm sorry, but the documentation does not provide a clear answer to your question about using deno_emit from Rust to bundle modules and reusing the module graph and transpiled code that was built during evaluation. It would be best to refer to the specific deno_emit and deno_graph documentation or seek advice from the Deno community for more detailed guidance. 🦕

Did you find this page helpful?