Permalink
Browse files

packager: Bundler: hash all the cache key components

Reviewed By: davidaurelio

Differential Revision: D4238061

fbshipit-source-id: 2ad79a85a5da3026afd508557b3b29457f472bb2
  • Loading branch information...
jeanlauliac authored and Facebook Github Bot committed Nov 30, 2016
1 parent 6554ad5 commit 6740207b9ff49082fc74d61df486e0efa2c07ca8
Showing with 4 additions and 1 deletion.
  1. +4 −1 packager/react-packager/src/Bundler/index.js
@@ -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,

0 comments on commit 6740207

Please sign in to comment.