Skip to content

Commit

Permalink
refactor: use import_map crate (denoland#11974)
Browse files Browse the repository at this point in the history
Removes ImportMap implementation from "cli/" and instead
uses "import_map" crate
  • Loading branch information
bartlomieju committed Sep 11, 2021
1 parent ba8bbe6 commit d236f43
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 883 deletions.
14 changes: 14 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ env_logger = "0.8.4"
fancy-regex = "0.7.1"
filetime = "0.2.14"
http = "0.2.4"
import_map = "0.3.0"
# TODO(lucacasonato): unlock when https://github.com/tkaitchuck/aHash/issues/95 is resolved
indexmap = { version = "=1.6.2", features = ["serde"] }
jsonc-parser = { version = "0.17.0", features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion cli/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
//! Diagnostics are compile-time type errors, whereas JsErrors are runtime
//! exceptions.

use crate::import_map::ImportMapError;
use deno_ast::Diagnostic;
use deno_core::error::AnyError;
use import_map::ImportMapError;

fn get_import_map_error_class(_: &ImportMapError) -> &'static str {
"URIError"
Expand Down
Loading

0 comments on commit d236f43

Please sign in to comment.