-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
fix: skip possible api route when ENOENT #7242
Conversation
Thanks for the PR. For the moment, I don't think we can proceed with it. We will move away from suffixes once some proposals advance. This is not only an issue for |
@patak-dev Thanks for the explanation. Can you point to the specific proposals? Interested to take a look. |
See this issue #7017, there are links from there to the diff proposals. |
@patak-dev What will take the place of suffixes? AFAICT the linked issue just swaps |
We are going to get something like this in the future: import foo from './file' as 'raw' |
@patak-dev Q is regarding suffix on URLs (
What this entails does not seem explained in #7017. Did you mean "move away from asserts"?
Maybe I'm not understanding but I don't get how using either reflective import or assert would affect the URL suffix. |
We aren't going to use the |
@patak-dev Ah, okay. If you care to, can you explain why |
Description
Before PR:
After PR:
Additional context
Related file/line:
vite/packages/vite/src/node/server/transformRequest.ts
Lines 111 to 113 in 2351d79
Not sure if this is the right location and code to fix this but it does resolve the issue in current state.
Not sure if test is needed or where would be added.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).