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

[feature request]: unresolvePath functionality #334

Open
zeorin opened this issue Nov 15, 2018 · 0 comments
Open

[feature request]: unresolvePath functionality #334

zeorin opened this issue Nov 15, 2018 · 0 comments

Comments

@zeorin
Copy link

zeorin commented Nov 15, 2018

It'd be great if this package could export an unresolvePath function alongside the resolvePath function, which does the exact opposite.

This would be great for projects like https://github.com/HeroProtagonist/eslint-plugin-module-resolver and https://github.com/Galooshi/import-js (see HeroProtagonist/eslint-plugin-module-resolver#1 and Galooshi/import-js#522).

This would help this plugin become more interoperable with the rest of the ecosystem, because if this plugin exposes the operation to resolve and unresolve, other software can count on this plugin to reliably reverse its operation. They'd all be using the same implementation of the unresolve functionality, and if you added some new way to resolve modules, those tools would automatically be able to use the unresolve function to unresolve them, without having to keep up to date themselves.

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

No branches or pull requests

1 participant