Skip to content

Commit

Permalink
feat: Support importing modules in js apps (#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei authored Nov 16, 2023
1 parent 632cb94 commit 5803abe
Show file tree
Hide file tree
Showing 12 changed files with 1,029 additions and 72 deletions.
122 changes: 83 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dozer-deno/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ dozer-types = { path = "../dozer-types" }
deno_runtime = "0.129.0"
deno_ast = "0.29.5"
tokio = "1.33.0"
deno_cache_dir = "0.6.2"
encoding_rs = "0.8.33"
once_cell = "1.18.0"
tempdir = "0.3.7"
9 changes: 9 additions & 0 deletions dozer-deno/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ pub use ts_module_loader::TypescriptModuleLoader;

mod runtime;
pub use runtime::{Error as RuntimeError, Runtime};

fn user_agent() -> String {
let version: String = env!("CARGO_PKG_VERSION").into();
format!(
"Dozer/{} {}",
version,
deno_runtime::BootstrapOptions::default().user_agent
)
}
Loading

0 comments on commit 5803abe

Please sign in to comment.