Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

Commit 7e501a6

Browse files
committedMar 5, 2015
Accept a webpack stats object directly instead of its json representation
1 parent f160e0a commit 7e501a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports.fromStats = function buildTree(stats, opts) {
1515

1616
// Build a module dependency tree
1717
var tree = {};
18-
stats.modules.forEach(function(mod) {
18+
stats.toJson({modules: true}).modules.forEach(function(mod) {
1919
// Ignore origin modules
2020
if (mod.name.indexOf('~') === -1) {
2121
return;

0 commit comments

Comments
 (0)
This repository has been archived.