Commit 535495e
feat(gdu): add bundle analyser support for Vite builds
Enable the existing `gdu build -a` / `ANALYZE=true` flag for Vite builds
using rollup-plugin-visualizer. Generates an interactive treemap report at
`bundle-report.html` in the output directory, matching the webpack behaviour.
The plugin is dynamically imported with a try/catch fallback (consistent with
vanilla-extract pattern) so consumers need rollup-plugin-visualizer installed.
AG-17604
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2e1ed67 commit 535495e
File tree
2 files changed
+33
-0
lines changed- .changeset
- packages/gdu/commands/build
2 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
99 | 127 | | |
100 | 128 | | |
101 | 129 | | |
| |||
0 commit comments