diff --git a/src/Native/Console/NativeCom.js b/src/Native/Console/NativeCom.js index d6da575..125293f 100644 --- a/src/Native/Console/NativeCom.js +++ b/src/Native/Console/NativeCom.js @@ -20,7 +20,7 @@ Elm.Native.Console.NativeCom.make = function(localRuntime) { var fs = null; /* Node.js imports */ - if (typeof module !== 'undefined' && module.exports) { + if (typeof module !== 'undefined' && module.exports && typeof require !== 'undefined') { fs = require('fs'); process.stdin.on('data', function(chunk) {