mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 18:25:06 +00:00
packager: GlobalTransformCache: fix non-bound function
Reviewed By: cpojer Differential Revision: D4972905 fbshipit-source-id: c9aaaba47f2c74bf48b7cbbc1255992d36ae32b1
This commit is contained in:
parent
58ba7fc075
commit
fddb3b0737
@ -408,8 +408,9 @@ class OptionsHasher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
relativizeFilePaths(filePaths: Array<string>): Array<string> {
|
relativizeFilePaths(filePaths: Array<string>): Array<string> {
|
||||||
return filePaths.map(this.relativizeFilePath);
|
return filePaths.map(this.relativizeFilePath.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
relativizeFilePath(filePath: string): string {
|
relativizeFilePath(filePath: string): string {
|
||||||
return path.relative(this._rootPath, filePath);
|
return path.relative(this._rootPath, filePath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user