Skip to content

Commit

Permalink
resolve merge conflicts. rge branch 'master' of https://github.com/el…
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeweiler committed Dec 1, 2016
2 parents a568a9d + 706cf98 commit 6e1cbbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/electrode-webpack-reporter/lib/module-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ class ModuleProcessor {
const byPkg = this.modulesByPackage = {};
this.totalSize = 0;
Object.keys(this.modulesByName).forEach((name) => {
// Ignore "ignored" modules i.e. node shims etc.
if (name.indexOf('(ignored)') > -1) {
return;
}

const split = this._splitPathName(name);
const pkg = byPkg[split.name] || (byPkg[split.name] = {size: 0});
const getVersion = (parents) => {
Expand Down
4 changes: 4 additions & 0 deletions packages/electrode-webpack-reporter/lib/webpack-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class WebpackReporter extends EventEmitter {
}

_stats(req, res) {
const jsonData = () => {
return this._reporterOptions.stats.toJson({}, true);
};

res.format({
json: () => {
res.json(jsonData());
Expand Down

0 comments on commit 6e1cbbc

Please sign in to comment.