Skip to content

Commit 9d26c38

Browse files
committed
Update deps, add failing test for tree shaking
1 parent db98ac3 commit 9d26c38

6 files changed

Lines changed: 1502 additions & 382 deletions

File tree

index.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
'use strict';
22

3-
'use strict';
4-
53
// Setup
64
const buf = ' ';
75
const tab = ' ';
86
const borderX = `${Array(30).join('-')}\n`;
97
let proc = process;
108
let root = proc && proc.cwd ? proc.cwd() : null;
11-
let limit;
12-
let filter;
9+
let limit, filter;
1310

1411
// Helpers
1512
const formatBytes = (bytes) => {
@@ -29,13 +26,13 @@ function init (opts) {
2926
root = opts.root || root;
3027
}
3128

32-
function analyzer$1 (opts) {
29+
function analyzer (opts) {
3330
init(opts);
3431
return {init, formatted, analyze}
3532
}
36-
analyzer$1.init = init;
37-
analyzer$1.formatted = formatted;
38-
analyzer$1.analyze = analyze;
33+
analyzer.init = init;
34+
analyzer.formatted = formatted;
35+
analyzer.analyze = analyze;
3936

4037
function formatted (bndl) { return analyze(bndl, true) }
4138

@@ -80,4 +77,4 @@ function analyze (bundle, format) {
8077
})
8178
}
8279

83-
module.exports = analyzer$1;
80+
module.exports = analyzer;

0 commit comments

Comments
 (0)