Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Feature: Ability to run resolver from within a module #157

Closed
guybedford opened this issue Jul 18, 2018 · 1 comment
Closed

Feature: Ability to run resolver from within a module #157

guybedford opened this issue Jul 18, 2018 · 1 comment
Labels

Comments

@guybedford
Copy link
Contributor

There is no feature currently tracking this, so I'm creating this and immediately closing so that we can have a reference for the features document.

The use case here is being able to resolve a module specifier from within a module context.

Current usage in Node.js is require.resolve('asdf').

@ljharb
Copy link
Member

ljharb commented Jul 18, 2018

I’d love to see import.meta.resolve - and it’s the sort of thing the browser may even be willing to provide, or even the language itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants