Skip to content

Commit 9795af7

Browse files
committed
Use updated example output
1 parent 6f98a0b commit 9795af7

3 files changed

Lines changed: 26 additions & 12 deletions

File tree

README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,32 @@ logged to console on rollup completion
5757
-----------------------------
5858
Rollup File Analysis
5959
-----------------------------
60-
bundle size: 1.146 MB
60+
bundle size: 2.809 KB
61+
original size: 11.384 KB
62+
code reduction: 75.33 %
6163
-----------------------------
62-
file: \node_modules\html5-history-api\history.js
63-
size: 38.502 KB
64-
percent: 3.36%
65-
dependents: 1
66-
- \app\modules\page.js
64+
file: \test\fixtures\import-d.js
65+
bundle space: 90.64 %
66+
rendered size: 2.546 KB
67+
original size: 2.57 KB
68+
code reduction: 0.93 %
69+
dependents: 1
70+
- \test\fixtures\import-c.js
6771
-----------------------------
68-
file: \node_modules\pikaday\pikaday.js
69-
size: 34.683 KB
70-
percent: 3.03%
71-
dependents: 1
72-
- \app\helpers\transformer.js
72+
file: \test\fixtures\bundle.js
73+
bundle space: 4.27 %
74+
rendered size: 120 Bytes
75+
original size: 267 Bytes
76+
code reduction: 55.06 %
77+
dependents: 0
78+
-----------------------------
79+
file: \test\fixtures\import-c.js
80+
bundle space: 2.95 %
81+
rendered size: 83 Bytes
82+
original size: 161 Bytes
83+
code reduction: 48.45 %
84+
dependents: 1
85+
- \test\fixtures\import-b.js
7386
...
7487
```
7588

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup-plugin-analyzer",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Mad metrics for your rollup bundles, know all the things",
55
"main": "index.js",
66
"module": "module.js",

test/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ rollers.forEach(({rollup, version, opts, noTreeshake}) => {
114114
let rollOpts = Object.assign({plugins: [plugin({writeTo})]}, opts)
115115
let bundle = await rollup(rollOpts)
116116
await bundle.generate({format: 'cjs'})
117+
if (version === 'latest') console.log(results)
117118
assert.is(results.substr(0, expectHeader.length), expectHeader)
118119
})
119120

0 commit comments

Comments
 (0)