Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[fixed] the isNode check for when the process variable exists in …
Browse files Browse the repository at this point in the history
…the browser
  • Loading branch information
thealjey committed Apr 21, 2017
1 parent fbbdd35 commit edaa3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* // or - var isNode = require('webcompiler').isNode;
* // or - var isNode = require('webcompiler/lib/util').isNode;
*/
export const isNode = 'undefined' !== typeof process && 'node' === process.release.name;
export const isNode = 'undefined' !== typeof process && process.release && 'node' === process.release.name;

/**
* `true` if the `NODE_ENV` environment variable is set to `"production"`
Expand Down

0 comments on commit edaa3ef

Please sign in to comment.