diff --git a/browser/fs.js b/browser/fs.js index 654315f..be97954 100644 --- a/browser/fs.js +++ b/browser/fs.js @@ -1,5 +1,6 @@ const nope = method => `Cannot use fs.${method} inside browser`; +export const isFile = () => false; export const readdirSync = nope( 'readdirSync' ); export const readFileSync = nope( 'readFileSync' ); export const writeFile = nope( 'writeFile' );