From b0575dcf3344ef0151b3de69bd32eacc2b9cf087 Mon Sep 17 00:00:00 2001 From: Patrik Stutz Date: Sat, 26 Nov 2016 14:27:38 +0100 Subject: [PATCH] fix bug with exposeAll option set to true --- lib/BrowserifyCache.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/BrowserifyCache.js b/lib/BrowserifyCache.js index 3ce6fdc..754a703 100644 --- a/lib/BrowserifyCache.js +++ b/lib/BrowserifyCache.js @@ -113,6 +113,12 @@ function attachCacheDiscoveryHandlers(b) { deps: assign({}, row.deps), }; + if(b._options.exposeAll && b._options.basedir){ + for(var key in dep.deps){ + dep.deps[key] = b._options.basedir+dep.deps[key]; + } + } + addCacheBlocker(b); updateCacheOnDep(b, dep, function(err) { if (err) b.emit('error', err);