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/no-unresolved can't detect the root package #3082

Open
saschanaz opened this issue Oct 7, 2024 · 1 comment
Open

import/no-unresolved can't detect the root package #3082

saschanaz opened this issue Oct 7, 2024 · 1 comment

Comments

@saschanaz
Copy link
Contributor

Node.js can do this:

// in package foo, in test script:
import foo from "foo"; // import itself for test!

It seems import/no-unresolved can't handle this.

@ljharb
Copy link
Member

ljharb commented Oct 7, 2024

That functionality comes from the exports field, which resolve does not yet support, and therefore neither do we. When it gets it, so will we.

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

No branches or pull requests

2 participants