mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-22 11:35:01 +08:00
packager: GlobalTransformCache: reduce asynchronicity for non-cached bundles
Reviewed By: davidaurelio Differential Revision: D4745595 fbshipit-source-id: 3126fdcc11dd1c8085316457ead0cabae633d0db
This commit is contained in:
committed by
Facebook Github Bot
parent
4cbb64521a
commit
439cb76a00
@@ -303,7 +303,7 @@ class Module {
|
||||
callback: (error: ?Error, result: ?TransformedCode) => void,
|
||||
) {
|
||||
const {_globalCache} = this;
|
||||
if (_globalCache == null) {
|
||||
if (_globalCache == null || !_globalCache.shouldFetch(cacheProps)) {
|
||||
this._transformCodeForCallback(cacheProps, callback);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user