-
Notifications
You must be signed in to change notification settings - Fork 533
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
Cannot automatically import multiple levels of nested directories under utils
#2918
Comments
/cc @antfu any clues? (i haven't checked anything yet but imagined you might have better context for resolution 🙏🏼 ) |
@pi0 If auto import multi-level directories is the desired behavior, I can submit a PR to fix this issue |
Explaining the context:@noootwo worked on the PRs to
utils . Previously, it was resolved as utils/**/*.{ts,js} , but now it is resolved to utils/*.{ts,js} . This issue was mainly asking about what's your original expectation of it, if you was expecting utils to resolve to nested folder, we would fix it in unimport.
My two cents:I think we should fix that in |
Correct a small error described here, previously, it was resolved as So if expect to match deep-level files, there were also some issues before.: ) |
So I tend to prefer maintaining the current This means that need to change If my understanding is off track, please correct me, thanks. |
Yeah I agree that only two-level nesting is confusing, it should be either one level or deep. /cc @pi0 WDYT? |
Environment
Reproduction
https://stackblitz.com/edit/github-pxnqrn?file=server%2Futils%2Findex.ts,server%2Futils%2Ffoo%2Fbar%2Findex.ts,server%2Futils%2Ffoo%2Findex.ts,server%2Froutes%2Findex.ts
Describe the bug
Cannot automatically import multi-level of nested directories under
server/utils
.In
unimport
version3.13
and earlier, auto-importing worked for two levels.However, in
unimport
version3.14
, it only works for one level.Additional context
Is automatically import of multi-level(>3) directories expected behavior?
Logs
No response
The text was updated successfully, but these errors were encountered: