module-deps
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -314,2 +314,6 @@ var fs = require('fs'); | ||
self.resolve(id, parent, function (err, file, pkg, fakePath) { | ||
// this is checked early because parent.modules is also modified | ||
// by this function. | ||
var builtin = has(parent.modules, id); | ||
if (rec.expose) { | ||
@@ -370,3 +374,3 @@ // Set options.expose to make the resolved pathname available to the | ||
.pipe(self.getTransforms(fakePath || file, pkg, { | ||
builtin: has(parent.modules, id) | ||
builtin: builtin | ||
})) | ||
@@ -373,0 +377,0 @@ .pipe(concat(function (body) { |
{ | ||
"name": "module-deps", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "walk the dependency graph to generate json output that can be fed into browser-pack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ var mdeps = require('../'); | ||
var pkg = JSON.parse(fs.readFileSync(dirname + pkg_.dir + '/package.json')); | ||
pkg.__dirname = dirname + pkg_.dir; | ||
pkg.__dirname = path.join(dirname, pkg_.dir); | ||
@@ -17,0 +17,0 @@ t.deepEqual(pkg_, pkg); |
67937
112
1829