Skip to content

Commit

Permalink
Update deps, add failing test for tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
doesdev committed Mar 14, 2018
1 parent db98ac3 commit 9d26c38
Show file tree
Hide file tree
Showing 6 changed files with 1,502 additions and 382 deletions.
15 changes: 6 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
'use strict';

'use strict';

// Setup
const buf = ' ';
const tab = ' ';
const borderX = `${Array(30).join('-')}\n`;
let proc = process;
let root = proc && proc.cwd ? proc.cwd() : null;
let limit;
let filter;
let limit, filter;

// Helpers
const formatBytes = (bytes) => {
Expand All @@ -29,13 +26,13 @@ function init (opts) {
root = opts.root || root;
}

function analyzer$1 (opts) {
function analyzer (opts) {
init(opts);
return {init, formatted, analyze}
}
analyzer$1.init = init;
analyzer$1.formatted = formatted;
analyzer$1.analyze = analyze;
analyzer.init = init;
analyzer.formatted = formatted;
analyzer.analyze = analyze;

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

Expand Down Expand Up @@ -80,4 +77,4 @@ function analyze (bundle, format) {
})
}

module.exports = analyzer$1;
module.exports = analyzer;
Loading

0 comments on commit 9d26c38

Please sign in to comment.