Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ anyhow = "1.0.43"
data-url = "0.2.0"
deno_ast = { version = "0.25.0", features = ["dep_graph", "module_specifier"] }
futures = "0.3.26"
indexmap = "1.9.2"
indexmap = { version = "1.9.2", features = ["serde"] }
monch = "0.4.1"
once_cell = "1.16.0"
parking_lot = "0.12.0"
Expand Down
6 changes: 6 additions & 0 deletions src/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ pub enum ImportAssertions {
Known(HashMap<String, ImportAssertion>),
}

impl Default for ImportAssertions {
fn default() -> Self {
Self::None
}
}

impl ImportAssertions {
// can't use this type directly because we need to make it serialize & deserialize
pub fn from_swc(value: deno_ast::swc::dep_graph::ImportAssertions) -> Self {
Expand Down
Loading