Skip to content

Commit a05feb1

Browse files
committed
Update build to work with Windows
1 parent 5cc5712 commit a05feb1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

crawl/index.mjs

+2-7
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,9 @@ const request = async (app, req, module, {
123123
const trPath = rpath.startsWith(baseURI) ?
124124
rpath.slice(baseURI.length) :
125125
!rpath.startsWith('/') ?
126-
path.resolve('/', rpath) :
126+
`/${rpath}` :
127127
rpath;
128-
const tfPath = fpath.startsWith(baseURI) ?
129-
fpath.slice(baseURI.length) :
130-
!fpath.startsWith('/') ?
131-
path.resolve('/', fpath) :
132-
fpath;
133-
return [ tfPath, trPath ];
128+
return [ fpath, trPath ];
134129
})
135130
.filter(([ fpath, rpath ]) => !visited.has(rpath) && (
136131
module ||

0 commit comments

Comments
 (0)