isNodejs.js 344 B

123456789
  1. export function isNodejs() {
  2. return typeof global === 'object'
  3. && typeof require === 'function'
  4. && typeof module !== 'undefined'
  5. // issues with gatsby.js: module.exports is undefined
  6. // && !!module.exports
  7. && typeof process !== 'undefined' && !!process.version;
  8. }
  9. //# sourceMappingURL=isNodejs.js.map