Skip to content

Commit

Permalink
Merge pull request #472 from developit/modules-fix
Browse files Browse the repository at this point in the history
Prefer c.modules (fixes #467)
  • Loading branch information
reznord authored Jan 27, 2018
2 parents e248bf0 + a1d909a commit 5b7e41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/webpack/run-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function writeJsonStats(stats) {
function strip(stats) {
stats.modules.forEach(stripLoaderFromModuleNames);
stats.chunks.forEach(c => {
(c.mapModules!=null ? c.mapModules(Object) : c.getModules()).forEach(stripLoaderFromModuleNames);
(c.modules || (c.mapModules!=null ? c.mapModules(Object) : c.getModules())).forEach(stripLoaderFromModuleNames);
});
if (stats.children) stats.children.forEach(strip);
}
Expand Down

0 comments on commit 5b7e41d

Please sign in to comment.