We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33bfd88 commit 21b44f2Copy full SHA for 21b44f2
docs/virtual-file-system-requirements.md
@@ -101,7 +101,15 @@ real file system and the VFS.
101
102
## VFS path manipulation as strings and URL objects
103
104
-Should support both.
+If someone proposes that the VFS exist at a `vfs-file://` prefix, then this
105
+might become an issue. `fs` APIs accept `URL` objects, but this means code in
106
+(transitive) dependencies which assumes all native paths are strings may fail
107
+when passed `URL` objects. Perhaps a (transitive) dependency uses
108
+`require.resolve()`.
109
+
110
+Using something like `vfs-file://` might be a potential solution for placing the
111
+VFS contents somewhere that has no interference with valid paths in the file
112
+system.
113
114
## Interaction with Native Addons
115
0 commit comments