Move call to fs.realpathSync to CompileCache

This commit is contained in:
Michelle Tilley
2016-10-30 10:41:33 -07:00
parent 934ab30a0d
commit 00a020d175
3 changed files with 2 additions and 9 deletions

View File

@@ -20,10 +20,12 @@ var COMPILERS = {
}
exports.addTranspilerConfigForPath = function (packagePath, config) {
packagePath = fs.realpathSync(packagePath)
packageTranspilationRegistry.addTranspilerConfigForPath(packagePath, config)
}
exports.removeTranspilerConfigForPath = function (packagePath) {
packagePath = fs.realpathSync(packagePath)
packageTranspilationRegistry.removeTranspilerConfigForPath(packagePath)
}

View File

@@ -14,7 +14,6 @@ function PackageTranspilationRegistry () {
Object.assign(PackageTranspilationRegistry.prototype, {
addTranspilerConfigForPath: function (packagePath, config) {
packagePath = fs.realpathSync(packagePath)
this.configByPackagePath[packagePath] = {
specs: config,
path: packagePath
@@ -22,7 +21,6 @@ Object.assign(PackageTranspilationRegistry.prototype, {
},
removeTranspilerConfigForPath: function (packagePath) {
packagePath = fs.realpathSync(packagePath)
delete this.configByPackagePath[packagePath]
},