packager: Bundler: hash all the cache key components

Reviewed By: davidaurelio

Differential Revision: D4238061

fbshipit-source-id: 2ad79a85a5da3026afd508557b3b29457f472bb2
This commit is contained in:
Jean Lauliac authored and Facebook Github Bot committed 2016-11-30 07:43:42 -08:00
1 parent 6554ad5983
commit 6740207b9f
1 file changed
+4 -1
+4 -1
View File
@@ -179,7 +179,10 @@ class Bundler {
}
}
const transformCacheKey = cacheKeyParts.join('$');
const transformCacheKey = crypto.createHash('sha1').update(
cacheKeyParts.join('$'),
).digest('hex');
this._cache = new Cache({
resetCache: opts.resetCache,
cacheKey: transformCacheKey,