@@ -332,7 +332,7 @@ Deps.prototype.walk = function (id, parent, cb) {
332
332
var ts = self . getTransforms ( file , pkg ) ;
333
333
ts . pipe ( concat ( function ( body ) {
334
334
rec . source = body . toString ( 'utf8' ) ;
335
- fromSource ( rec . source ) ;
335
+ fromSource ( file , rec . source , pkg ) ;
336
336
} ) ) ;
337
337
return ts . end ( rec . source ) ;
338
338
}
@@ -354,7 +354,7 @@ Deps.prototype.walk = function (id, parent, cb) {
354
354
var ts = self . getTransforms ( file , pkg ) ;
355
355
ts . pipe ( concat ( function ( body ) {
356
356
rec . source = body . toString ( 'utf8' ) ;
357
- fromSource ( rec . source ) ;
357
+ fromSource ( file , rec . source , pkg ) ;
358
358
} ) ) ;
359
359
return ts . end ( rec . source ) ;
360
360
}
@@ -367,15 +367,15 @@ Deps.prototype.walk = function (id, parent, cb) {
367
367
builtin : has ( parent . modules , id )
368
368
} ) )
369
369
. pipe ( concat ( function ( body ) {
370
- fromSource ( body . toString ( 'utf8' ) ) ;
370
+ fromSource ( file , body . toString ( 'utf8' ) , pkg ) ;
371
371
} ) )
372
372
;
373
-
374
- function fromSource ( src ) {
375
- var deps = rec . noparse ? [ ] : self . parseDeps ( file , src ) ;
376
- if ( deps ) fromDeps ( file , src , pkg , deps ) ;
377
- }
378
373
} ) ;
374
+
375
+ function fromSource ( file , src , pkg ) {
376
+ var deps = rec . noparse ? [ ] : self . parseDeps ( file , src ) ;
377
+ if ( deps ) fromDeps ( file , src , pkg , deps ) ;
378
+ }
379
379
380
380
function fromDeps ( file , src , pkg , deps ) {
381
381
var p = deps . length ;
0 commit comments