webpack-bundle-size-analyzer
Advanced tools
Comparing version 2.0.2 to 2.2.0
@@ -1,2 +0,2 @@ | ||
/// <reference path="typings/typings.d.ts" /> | ||
"use strict"; | ||
var commander = require('commander'); | ||
@@ -18,5 +18,5 @@ var fs = require('fs'); | ||
else if (!process.stdin.isTTY) { | ||
var json = ''; | ||
process.stdin.on('data', function (chunk) { return json += chunk.toString(); }); | ||
process.stdin.on('end', function () { return printStats(json); }); | ||
var json_1 = ''; | ||
process.stdin.on('data', function (chunk) { return json_1 += chunk.toString(); }); | ||
process.stdin.on('end', function () { return printStats(json_1); }); | ||
} | ||
@@ -23,0 +23,0 @@ else { |
@@ -1,2 +0,2 @@ | ||
/// <reference path="typings/typings.d.ts" /> | ||
"use strict"; | ||
var filesize = require('filesize'); | ||
@@ -32,4 +32,4 @@ var path = require('path'); | ||
} | ||
for (var _i = 0; _i < childrenBySize.length; _i++) { | ||
var child = childrenBySize[_i]; | ||
for (var _i = 0, childrenBySize_1 = childrenBySize; _i < childrenBySize_1.length; _i++) { | ||
var child = childrenBySize_1[_i]; | ||
++includedCount; | ||
@@ -36,0 +36,0 @@ var percentage = ((child.size / totalSize) * 100).toPrecision(3); |
@@ -1,6 +0,6 @@ | ||
/// <reference path="../typings/typings.d.ts" /> | ||
"use strict"; | ||
var chai_1 = require('chai'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var size_tree = require('../size_tree'); | ||
var size_tree = require('../src/size_tree'); | ||
describe('printDependencySizeTree()', function () { | ||
@@ -7,0 +7,0 @@ it('should print the size tree', function () { |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
function isMultiCompilation(stats) { | ||
@@ -2,0 +3,0 @@ return !stats.hasOwnProperty('modules'); |
@@ -0,1 +1,6 @@ | ||
## 2.2.0 | ||
- Added `--json` command-line argument which outputs the package size | ||
tree in JSON format (#20). | ||
## 2.0.2 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "webpack-bundle-size-analyzer", | ||
"version": "2.0.2", | ||
"version": "2.2.0", | ||
"description": "A utility to find how your dependencies are contributing to the size of your Webpack bundles", | ||
@@ -32,7 +32,10 @@ "main": "build/size_tree.js", | ||
"devDependencies": { | ||
"@types/chai": "^3.4.30", | ||
"@types/commander": "^2.3.29", | ||
"@types/mocha": "^2.2.29", | ||
"@types/node": "^6.0.33", | ||
"chai": "^2.2.0", | ||
"mocha": "^2.2.1", | ||
"tsd": "^0.6.0-beta.5", | ||
"typescript": "^1.6.2" | ||
"typescript": "^2.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
19017
11
389
0
74
7
3