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

import.meta.resolve second argument #15073

Open
guybedford opened this issue Jul 4, 2022 · 1 comment
Open

import.meta.resolve second argument #15073

guybedford opened this issue Jul 4, 2022 · 1 comment
Labels
runtime Relates to code in the runtime crate suggestion suggestions for new features (yet to be agreed)

Comments

@guybedford
Copy link
Contributor

Chrome is now moving towards shipping import.meta.resolve as discussed in #7296.

The current form takes a single argument to resolve.

Node.js implements the ability to pass an optional second argument to import.meta.resolve for a custom parentURL to resolve against, allowing import.meta.resolve to act as a generic resolver in various contexts, which may be useful as a generic way to expose the global resolver.

I wanted to post this as a tracking bug for Deno to implement this along with #7296. Further discussion welcome.

@stale
Copy link

stale bot commented Sep 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 8, 2022
@stale stale bot closed this as completed Sep 16, 2022
@kitsonk kitsonk added suggestion suggestions for new features (yet to be agreed) runtime Relates to code in the runtime crate and removed stale labels Sep 16, 2022
@kitsonk kitsonk reopened this Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runtime Relates to code in the runtime crate suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

2 participants