mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Move call to fs.realpathSync to CompileCache
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user