Skip to content

Commit

Permalink
Prefer c.modules (fixes #467)
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jan 27, 2018
1 parent 6460ab1 commit a1d909a
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 a1d909a

Please sign in to comment.