Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: resolve_import #79

Merged
merged 6 commits into from
Jun 25, 2024
Merged

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jun 21, 2024

Moves resolve_import from deno_graph:

https://github.com/denoland/deno_graph/blob/15db6e5fb6d3faea027e16c3d9ce6498b11beed2/src/module_specifier.rs#L53

This sort of makes sense to move here for situations where someone does not have an import map and still wants to resolve specifiers. This will be useful for code resuse in deno_graph and deno_config where deno_config does not depend on deno_graph.

@dsherret dsherret requested a review from bartlomieju June 21, 2024 19:49
@@ -1118,6 1119,8 @@ fn resolve_imports_match(
return Ok(Some(url));
}

log::debug!("Backtrace: {}", std::backtrace::Backtrace::force_capture());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this on purpose or left by accident?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accident. I don’t remember writing this lol

rs-lib/src/lib.rs Outdated Show resolved Hide resolved
rs-lib/src/lib.rs Outdated Show resolved Hide resolved
@dsherret dsherret merged commit ea12ee7 into denoland:main Jun 25, 2024
4 checks passed
@dsherret dsherret deleted the feat_resolve_import branch June 25, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants