Browse Source

fix browser build

better-aggressive
Rich-Harris 9 years ago
parent
commit
9e14a05aa1
  1. 1
      browser/fs.js

1
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' );

Loading…
Cancel
Save