Skip to content

Commit 06713a0

Browse files
committed
build: add visualizer view bundle size
1 parent b5f6c63 commit 06713a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rollup.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
77
import commonjs from '@rollup/plugin-commonjs';
88
import replace from '@rollup/plugin-replace';
99
import path from 'path';
10+
import { visualizer } from 'rollup-plugin-visualizer';
1011

1112
const pkg = require('./package.json');
1213

@@ -52,6 +53,11 @@ const plugins = [
5253
},
5354
],
5455
}),
56+
visualizer({
57+
open: false,
58+
gzipSize: true,
59+
brotliSize: true,
60+
}),
5561
];
5662

5763
export default {

0 commit comments

Comments
 (0)