From 86d45a5b9bd3c81b5b4f6ededebad065cb3f21d3 Mon Sep 17 00:00:00 2001 From: Michelle Tilley Date: Wed, 17 May 2017 20:39:16 +0200 Subject: [PATCH] Add temporary build debugging --- src/package-transpilation-registry.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/package-transpilation-registry.js b/src/package-transpilation-registry.js index e5f41233d..80908805b 100644 --- a/src/package-transpilation-registry.js +++ b/src/package-transpilation-registry.js @@ -32,7 +32,9 @@ class PackageTranspilationRegistry { const packagePathWithSep = packagePath.endsWith(path.sep) ? packagePath : packagePath + path.sep; Object.keys(this.specByFilePath).forEach(filePath => { + console.log('checking if ' + filePath + ' starts with ' + packagePathWithSep) if (filePath.startsWith(packagePathWithSep)) { + console.log(' >> REMOVING ' + filePath) delete this.specByFilePath[filePath] } }) @@ -46,7 +48,13 @@ class PackageTranspilationRegistry { getCachePath: (sourceCode, filePath) => { const spec = this.getPackageTranspilerSpecForFilePath(filePath) if (spec) { - return this.getCachePath(sourceCode, filePath, spec) + try { + return this.getCachePath(sourceCode, filePath, spec) + } catch (err) { + console.log("ERROR!!!") + console.log("The file being transpiled was " + filePath) + console.log(spec) + } } return transpiler.getCachePath(sourceCode, filePath)