Skip to content

Commit

Permalink
feat: add rollup-plugin-visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi committed May 9, 2024
1 parent 2dc72d3 commit 0b842f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,6 @@ src/__snapshots__/*
build/

.yarnrc.yml

# generated by rollup-plugin-visualizer
stats.html
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"postcss-normalize": "^10.0.1",
"prettier": "^3.2.5",
"react-error-overlay": "^6.0.11",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "1.70.0",
"storybook": "^8.0.9",
"storybook-addon-remix-react-router": "^3.0.0",
Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/// <reference types="vitest" />
import react from '@vitejs/plugin-react-swc';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
base: '/',
plugins: [react()],
plugins: [react(), visualizer()],
build: {
outDir: 'build',
},
Expand Down

0 comments on commit 0b842f3

Please sign in to comment.