rocketll
rocketll
DDeno
Created by rocketll on 11/26/2023 in #help
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.
2 replies
DDeno
Created by rocketll on 11/22/2023 in #help
Most complete Deno Rust runtime?
I’m trying to embed the Deno runtime into my Rust program. I’m looking for the most “complete” Deno runtime with TS transpilation, basic ops (fetch/console/fs/etc), imports, and most of the things a basic TS runtime would have. So far I only found: - deno_core and https://deno.com/blog/roll-your-own-javascript-runtime-pt2: too much boilerplate - deno_runtime: no TS support - deno: no public facing API What would be my best option?
7 replies