From ed1a9eeb235fefc1cd21c919af3b73e29f2414ac Mon Sep 17 00:00:00 2001 From: James Talmage Date: Wed, 16 Dec 2015 11:34:50 -0500 Subject: [PATCH] write to the cache async? --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3243153c6..19151be99 100755 --- a/index.js +++ b/index.js @@ -175,7 +175,7 @@ NYC.prototype._wrapRequire = function () { return fs.readFileSync(cacheFilePath, 'utf8') } catch (e) { var instrumented = _this.instrumenter().instrumentSync(code, './' + relFile) - fs.writeFileSync(cacheFilePath, instrumented) + fs.writeFile(cacheFilePath, instrumented) return instrumented } })