From dbcabf9e9eeb666c8d276a867c831eff74b42964 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 10 Mar 2016 22:41:05 -0800 Subject: [PATCH] Update require guard --- src/Native/Console/NativeCom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {