diff --git a/lib/transform/get-deps.js b/lib/transform/get-deps.js
index <HASH>..<HASH> 100644
--- a/lib/transform/get-deps.js
+++ b/lib/transform/get-deps.js
@@ -26,6 +26,7 @@ module.exports = function(config, writer) {
           if(args.length === 1 && args[0].type === 'Literal') {
             var req = args[0].value
 
+            if(/.*\/$/g.test(req)) req = req + 'index.js' //require('./lib/')
             if(config.map && config.map[req]) req = config.map[req]
 
             var dep = Module({base: file.base , requiredAs: req })
resolving require when pointing to dir (dirname/index.js)