mirror of
https://github.com/status-im/metro.git
synced 2025-01-10 11:06:06 +00:00
packager: Bundler: hash all the cache key components
Reviewed By: davidaurelio Differential Revision: D4238061 fbshipit-source-id: 2ad79a85a5da3026afd508557b3b29457f472bb2
This commit is contained in:
parent
771e60235a
commit
937dc7ca17
5
react-packager/src/Bundler/index.js
vendored
5
react-packager/src/Bundler/index.js
vendored
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user