Skip to content

Commit 9522607

Browse files
committed
fix: site build
1 parent 326e9e0 commit 9522607

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/reader.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
const URL = require("url");
2-
3-
const isClient = typeof window !== "undefined";
4-
51
const INDEX_FILENAME = "序";
62

73
function isHostTrusted(url, trustedHosts) {
@@ -50,10 +46,6 @@ function defaultImportReader(
5046
for (dir of importPaths) {
5147
let uri = dir;
5248

53-
if (isClient) {
54-
uri = URL.resolve(window.document.location, uri);
55-
}
56-
5749
if (uri.endsWith("/")) uri = uri.slice(0, -1);
5850

5951
if (isHttpURL(uri)) {

0 commit comments

Comments
 (0)