From f78a1ccbf83bdd54180ad310c6e3524c918a0395 Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 05:35:08 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- buildfiles/r.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildfiles/r.js b/buildfiles/r.js index a46ed12..3d04ae1 100644 --- a/buildfiles/r.js +++ b/buildfiles/r.js @@ -89,7 +89,7 @@ var requirejs, require, define; }; exists = function (fileName) { - return path.existsSync(fileName); + return fs.existsSync(fileName); }; @@ -2263,7 +2263,7 @@ var requirejs, require, define; //Indicate a the module is in process of loading. context.scriptCount += 1; - if (path.existsSync(url)) { + if (fs.existsSync(url)) { contents = fs.readFileSync(url, 'utf8'); contents = req.makeNodeWrapper(contents);