Permalink
Browse files

packager: GlobalTransformCache: fix non-bound function

Reviewed By: cpojer

Differential Revision: D4972905

fbshipit-source-id: c9aaaba47f2c74bf48b7cbbc1255992d36ae32b1
  • Loading branch information...
jeanlauliac authored and facebook-github-bot committed Apr 28, 2017
1 parent 58ba7fc commit fddb3b0737234cdf871291c5fa51cb9e5c3a5d2e
Showing with 2 additions and 1 deletion.
  1. +2 −1 packager/src/lib/GlobalTransformCache.js
@@ -408,8 +408,9 @@ class OptionsHasher {
}
relativizeFilePaths(filePaths: Array<string>): Array<string> {
return filePaths.map(this.relativizeFilePath);
return filePaths.map(this.relativizeFilePath.bind(this));
}
relativizeFilePath(filePath: string): string {
return path.relative(this._rootPath, filePath);
}

0 comments on commit fddb3b0

Please sign in to comment.