Skip to content

Commit ffadb24

Browse files
committed
fix: browser build mock fs not working still
1 parent 6e46a1e commit ffadb24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index-web.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import buildReferenceResolver from "./reference-resolver";
22
import fetch from "isomorphic-fetch";
33

44
export default buildReferenceResolver(fetch, {
5-
access: () => Promise.resolve(false),
6-
readFile: () => Promise.resolve(""),
5+
access: (a: any, b: any, cb: (e: Error) => any) => cb(new Error("cant resolve file refs in a browser... yet")),
6+
readFile: (a: any, b: any, cb: () => any) => { return cb(); },
77
constants: { F_OK: 0, R_OK: 0 } //tslint:disable-line
88
});

0 commit comments

Comments
 (0)