diff --git a/src/node/compat.js b/src/node/compat.js index cc3a0bd..91af7fb 100644 --- a/src/node/compat.js +++ b/src/node/compat.js @@ -17,7 +17,7 @@ this.Miso.load = function(moduleName) { require(moduleName); } catch (ex) { // If path is not already full qualified prefix with cwd - if (!path.existsSync(moduleName)) { + if (!fs.existsSync(moduleName)) { moduleName = path.resolve(process.cwd(), moduleName); }