From ae1b7f810d2f661216bf7485aef67569e12e872d Mon Sep 17 00:00:00 2001 From: Dmitrii Sorin Date: Mon, 19 Jun 2017 23:22:49 +1000 Subject: [PATCH] Check map file exists as well as compile JS target files, closes #362 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 138441ba7..74799689b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -482,7 +482,7 @@ function readThrough ( cache.sourceMaps[fileName] = sourceMapPath // Use the cache when available. - if (fileExists(outputPath)) { + if (fileExists(outputPath) && fileExists(sourceMapPath)) { return getFile(outputPath) }