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 14f0d48 commit c39035eCopy full SHA for c39035e
index.mjs
@@ -109,7 +109,9 @@ function normalizeId(id) {
109
function toFilePath(id, server) {
110
let absolute = id.startsWith('/@fs/')
111
? id.slice(4)
112
- : slash(resolve(server.config.root, id.slice(1)))
+ : id.startsWith(dirname(server.config.root))
113
+ ? id
114
+ : slash(resolve(server.config.root, id.slice(1)))
115
116
if (absolute.startsWith('//'))
117
absolute = absolute.slice(1)
0 commit comments