Skip to content

Comments

Add a bundle analyze command#1334

Merged
zetter-rpf merged 1 commit intomainfrom
add-webpack-bundle-analysis
Feb 19, 2026
Merged

Add a bundle analyze command#1334
zetter-rpf merged 1 commit intomainfrom
add-webpack-bundle-analysis

Conversation

@zetter-rpf
Copy link
Contributor

@zetter-rpf zetter-rpf commented Feb 18, 2026

This will make it easier for us to check and understand size changes to webpack bundles.

In the future we could use a github action to automate generating and tracking this.

To use run yarn analyze. This will build the project and open a browser to explore.

See example in #1333

This will make it easier for us to check and understand size changes to webpack bundles.

In the future we could use a github action to automate generating and tracking this.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an opt-in yarn analyze workflow to generate a Webpack bundle report to help track and understand bundle size changes over time.

Changes:

  • Add webpack-bundle-analyzer dependency and lockfile entries.
  • Add an analyze npm script that builds with analysis enabled.
  • Wire BundleAnalyzerPlugin into webpack.config.js behind an environment flag.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
package.json Adds analyze script and webpack-bundle-analyzer dev dependency.
webpack.config.js Conditionally adds BundleAnalyzerPlugin during builds.
yarn.lock Updates lockfile to include analyzer and transitive dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zetter-rpf zetter-rpf merged commit f328ad1 into main Feb 19, 2026
13 checks passed
@zetter-rpf zetter-rpf deleted the add-webpack-bundle-analysis branch February 19, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants