-
-
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
feat: fs-serve import graph awareness #3784
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests also seem to not pass 🙁
Failing test on windows |
Finally 🙃 |
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Great to have proper tests for this feature now ❤️
+1
If I recall correctly from Marvin, this is also the approach that WMR took. But I can't find the option in their docs now.
Does this mean that if you
I would prefer that we deprecate
This is awesome |
No, they should be automated marked as safe I think. The
This should work theoretically, however I can't still be 100% sure. It will be great if you can link it to your real project and test out :) |
Tested this in windows in a Vite App and it works fine when yarn linking vite 👍🏼 |
After some digging, it's still not easy to generalize handling for As a result, I renamed it to |
* Default to false at this moment, will enabled by default in the future versions. | ||
* | ||
* @expiremental | ||
* @default undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the default false
or undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined
. false
to disable the warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we should change the descriptive text in line 141 to something less confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point
This PR brings new options, so it would be better to mark as |
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Description
resolve #2820, resolve #3373
server.fsServe.allow
options is introduced to have multiple safe roots@fs
serving files #3373root
, should we unify them withallow: string | string[]
?Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).