-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
perf(resolve): avoid tryFsResolve for /@fs/ paths #12450
Conversation
Run & review this pull request in StackBlitz Codeflow. |
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
It seems that ecosystem CI is happy too. @antfu double-checking that as a plugin author, you don't expect to be able to use |
@Liknox if you spam the repo again, you'll be banned from the org (context: three other PRs got approvals or a generic comment). You're welcome to do reviews that are focused on the reason to move or not forward with a PR |
Astro used to rely on a hack with I think vite-node / vitest relies on manually crafting |
Vitest doesn't rely on manually crafting |
I am not very aware of the context here. But I think if it passes for Vitest it's probably also ok with other usages. |
Thanks for the PR to Astro and the context @bluwy. cc @danielroe @benmccann @brillout @Akryum, just in case you also relied on hacks using unresolved But that's a good point @antfu. Maybe we could include this one on Vite 4.3. I'll add it to the team board so we can check with Evan too because looking at the history, resolving after unwrapping |
👍 Sounds good to me. |
We discussed this PR in today's team meeting and decided to move forward with it. Merging so we can test during the beta. |
Description
/@fs/
should already be resolved. I think we shouldn't need a fulltryFsResolve
(that checks for extensions and package entries). And we don't even need to check if the file exists.Doing a PR to test CI.
What is the purpose of this pull request?