Skip to content

Commit ae42bd7

Browse files
authored
doc(rollup-plugin): Update README.md
1 parent 5fc2d02 commit ae42bd7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

packages/rollup-plugin/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ yarn add --dev rollup-plugin-bundle-stats
5353

5454
## Configure
5555

56+
### Rollup
5657
```js
5758
// rollup.config.js
5859
const { bundleStats } = require('rollup-plugin-bundle-stats');
@@ -62,7 +63,20 @@ module.exports = {
6263
plugins: [
6364
bundleStats()
6465
]
65-
}
66+
};
67+
```
68+
69+
### Vite
70+
```js
71+
// vite.config.js
72+
const { bundleStats } = require('rollup-plugin-bundle-stats');
73+
74+
module.exports = {
75+
...,
76+
plugins: [
77+
bundleStats()
78+
]
79+
};
6680
```
6781

6882
### Options

0 commit comments

Comments
 (0)