diff --git a/src/compile-cache.js b/src/compile-cache.js index c427097e7..e10bf6803 100644 --- a/src/compile-cache.js +++ b/src/compile-cache.js @@ -108,7 +108,7 @@ require('source-map-support').install({ // source-map-support module, but we've overridden it to read the javascript // code from our cache directory. retrieveSourceMap: function (filePath) { - if (!fs.isFileSync(filePath)) { + if (!cacheDirectory || !fs.isFileSync(filePath)) { return null }