Skip to content

Commit bf73715

Browse files
committed
ci(vite): add visualizer
1 parent ac1f8d1 commit bf73715

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ cache
99
/test-results/
1010
/playwright-report/
1111
/playwright/.cache/
12+
13+
stats.html

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"lint-staged": "^13.1.0",
8585
"local-pkg": "^0.4.3",
8686
"release-it": "^15.6.0",
87+
"rollup-plugin-visualizer": "^5.9.2",
8788
"simple-git-hooks": "^2.8.1",
8889
"typescript": "^5.0.4",
8990
"vite": "^4.1.2",

vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineConfig } from 'vite'
33
import vue from '@vitejs/plugin-vue'
44
import dts from 'vite-plugin-dts'
55
import banner from 'vite-plugin-banner'
6+
import { visualizer } from 'rollup-plugin-visualizer'
67

78
// @ts-expect-error fs-extra packag.json config
89
import { readJSONSync } from 'fs-extra/esm'
@@ -17,7 +18,8 @@ export default defineConfig({
1718
}),
1819
banner({
1920
content: `/**\n * name: ${pkg.name}\n * version: v${pkg.version}\n * description: ${pkg.description}\n * author: ${pkg.author}\n * homepage: ${pkg.homepage}\n */`,
20-
})],
21+
}),
22+
visualizer()],
2123
build: {
2224
lib: {
2325
entry: [resolve(__dirname, 'src/index.ts')],

0 commit comments

Comments
 (0)