Skip to content

Commit 6740207

Browse files
Jean LauliacFacebook Github Bot
Jean Lauliac
authored and
Facebook Github Bot
committed
packager: Bundler: hash all the cache key components
Reviewed By: davidaurelio Differential Revision: D4238061 fbshipit-source-id: 2ad79a85a5da3026afd508557b3b29457f472bb2
1 parent 6554ad5 commit 6740207

File tree

1 file changed

+4
-1
lines changed
  • packager/react-packager/src/Bundler

1 file changed

+4
-1
lines changed

packager/react-packager/src/Bundler/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ class Bundler {
179179
}
180180
}
181181

182-
const transformCacheKey = cacheKeyParts.join('$');
182+
const transformCacheKey = crypto.createHash('sha1').update(
183+
cacheKeyParts.join('$'),
184+
).digest('hex');
185+
183186
this._cache = new Cache({
184187
resetCache: opts.resetCache,
185188
cacheKey: transformCacheKey,

0 commit comments

Comments
 (0)