We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0095f0b + f4ad53f commit d5b0c3cCopy full SHA for d5b0c3c
src/index.js
@@ -2,7 +2,10 @@
2
3
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
4
5
-const isNode = typeof module !== 'undefined' && typeof module.exports !== 'undefined';
+const isNode =
6
+ typeof process !== 'undefined' &&
7
+ process.versions != null &&
8
+ process.versions.node != null;
9
10
export {
11
isBrowser,
0 commit comments