feat: fs-serve import graph awareness#3784
Conversation
Shinigami92
left a comment
There was a problem hiding this comment.
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.
Is the default false or undefined?
There was a problem hiding this comment.
undefined. false to disable the warning
There was a problem hiding this comment.
Then we should change the descriptive text in line 141 to something less confusing
|
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.allowoptions is introduced to have multiple safe roots@fsserving 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).