2020-08-20 02:10:42 +02:00
|
|
|
export function isNodejs() {
|
2020-08-18 14:04:33 +02:00
|
|
|
return typeof global === 'object'
|
|
|
|
&& typeof require === 'function'
|
|
|
|
&& typeof module !== 'undefined'
|
|
|
|
// issues with gatsby.js: module.exports is undefined
|
|
|
|
// && !!module.exports
|
|
|
|
&& typeof process !== 'undefined' && !!process.version;
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=isNodejs.js.map
|