Remove lookup in favor of passed arg

This commit is contained in:
Michelle Tilley
2016-10-29 15:29:21 -07:00
parent eafc281025
commit 0c9ea6c67d

View File

@@ -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,