diff --git a/packages/metro-bundler/src/lib/TransformCaching.js b/packages/metro-bundler/src/lib/TransformCaching.js index d2283bc9..c9efb1df 100644 --- a/packages/metro-bundler/src/lib/TransformCaching.js +++ b/packages/metro-bundler/src/lib/TransformCaching.js @@ -272,7 +272,7 @@ class FileBasedCache { ); if ( Number.isInteger(lastCollected) && - Date.now() - lastCollected > GARBAGE_COLLECTION_PERIOD + Date.now() - lastCollected < GARBAGE_COLLECTION_PERIOD ) { return; }