From 0c9ea6c67dbc036fde949ce41301c3773ab0f2bc Mon Sep 17 00:00:00 2001 From: Michelle Tilley Date: Sat, 29 Oct 2016 15:29:21 -0700 Subject: [PATCH] Remove lookup in favor of passed arg --- src/package-transpilation-registry.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/package-transpilation-registry.js b/src/package-transpilation-registry.js index 8767b4d72..bf07f9187 100644 --- a/src/package-transpilation-registry.js +++ b/src/package-transpilation-registry.js @@ -111,8 +111,6 @@ Object.assign(PackageTranspilationRegistry.prototype, { }, transpileWithPackageTranspiler: function (sourceCode, filePath, spec) { - var spec = this.specByFilePath[filePath] - Resolve = Resolve || require('resolve') var transpilerPath = Resolve.sync(spec.transpiler, { basedir: spec._config.path,