Skip to content

Commit

Permalink
Fix sourcemap file size in report (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeMoorJasper authored and devongovett committed Jul 1, 2018
1 parent ead365c commit 729f252
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ class Bundle {

await packager.end();

this.totalSize = packager.getSize();

let assetArray = Array.from(this.assets);
let assetStartTime =
this.type === 'map'
Expand Down
2 changes: 1 addition & 1 deletion src/packagers/JSConcatPackager.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ class JSConcatPackager extends Packager {
output = '(function () {' + output + '})();';
}

this.bundle.totalSize = output.length;
this.size = output.length;

let {sourceMaps} = this.options;
if (sourceMaps) {
Expand Down

0 comments on commit 729f252

Please sign in to comment.