diff --git a/src/fs-shim.js b/src/fs-shim.js index 7350230..cb45169 100644 --- a/src/fs-shim.js +++ b/src/fs-shim.js @@ -1,5 +1,4 @@ /* eslint-disable */ -const fs = (typeof window === 'object' || typeof self === 'object') ? null - : eval('require("fs")') +const fs = (typeof process !== 'object' && (typeof window === 'object' || typeof self === 'object')) ? null : eval('require("fs")') module.exports = fs