From 5cd004988170f5048bfaab3adefe7947cccbcc78 Mon Sep 17 00:00:00 2001 From: Michelle Tilley Date: Wed, 17 May 2017 21:07:48 +0200 Subject: [PATCH] Remove debug logging --- src/package-transpilation-registry.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/package-transpilation-registry.js b/src/package-transpilation-registry.js index 6f6fe2b13..494fdba6f 100644 --- a/src/package-transpilation-registry.js +++ b/src/package-transpilation-registry.js @@ -19,7 +19,6 @@ class PackageTranspilationRegistry { } addTranspilerConfigForPath (packagePath, packageName, packageMeta, config) { - console.log(">>>>> ADDING: " + packagePath) this.configByPackagePath[packagePath] = { name: packageName, meta: packageMeta, @@ -29,14 +28,11 @@ class PackageTranspilationRegistry { } removeTranspilerConfigForPath (packagePath) { - console.log(">>>>> REMOVING: " + packagePath) delete this.configByPackagePath[packagePath] const packagePathWithSep = packagePath.endsWith(path.sep) ? path.join(packagePath) : path.join(packagePath) + path.sep; Object.keys(this.specByFilePath).forEach(filePath => { - console.log('checking if ' + filePath + ' starts with ' + packagePathWithSep) if (path.join(filePath).startsWith(packagePathWithSep)) { - console.log(' >> REMOVING ' + filePath) delete this.specByFilePath[filePath] } }) @@ -50,13 +46,7 @@ class PackageTranspilationRegistry { getCachePath: (sourceCode, filePath) => { const spec = this.getPackageTranspilerSpecForFilePath(filePath) if (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 this.getCachePath(sourceCode, filePath, spec) } return transpiler.getCachePath(sourceCode, filePath)