Skip to content

Use esbuild for bundle-size measurements - #4327

Open
Jason Morse (JasonVMo) wants to merge 2 commits into
mainfrom
user/jasonvmo/codegen-next
Open

Jason Morse (JasonVMo) wants to merge 2 commits into
mainfrom
user/jasonvmo/codegen-next

Conversation

@JasonVMo

Copy link
Copy Markdown
Contributor

Summary

  • replace the Metro-based bundle-size path with direct esbuild bundles using platform-aware extension resolution
  • externalize React, React Native runtimes, React Native SVG, and SVGO while removing the shell profile and refreshing the baseline
  • merge macOS and Windows measurements by scenario in terminal, Markdown, pipeline summary, and PR comment output
  • validate generated reports in both the PR job and trusted fork/Dependabot comment workflow

Validation

  • yarn workspace @fluentui-react-native/bundle-size test
  • yarn workspace @fluentui-react-native/bundle-size lint
  • yarn workspace @fluentui-react-native/bundle-size format
  • yarn bundle-size
  • yarn workspace @fluentui-react-native/bundle-size validate-report
  • yarn lint-lockfile
  • yarn check-publishing
  • yarn lint-repo

@github-actions

Copy link
Copy Markdown
Contributor

Bundle size report

Tree-shaken, minified production esbuild bundles with React and React Native runtimes externalized.

Scenario Modules-Mac (Δ) Modules-Win (Δ) Size-Mac (Δ) Size-Win (Δ)
components-button 62 (New) 63 (New) 49.94k (New) 49.87k (New)
components-catalog 159 (New) 160 (New) 155.26k (New) 155.19k (New)
design-theme-state 33 (New) 34 (New) 30.11k (New) 30.03k (New)
design-themed-root 37 (New) 38 (New) 32.07k (New) 32.00k (New)
design-color-lib 6 (New) 6 (New) 6.33k (New) 6.33k (New)
design-theme-state-legacy-source 34 (New) 35 (New) 31.77k (New) 31.69k (New)
design-legacy-theme-from-flex 57 (New) 58 (New) 97.72k (New) 97.59k (New)

The job is advisory: size changes are reported but do not fail the pull request. Bundle or analysis errors still fail.


View bundle-size workflow run

@JasonVMo
Jason Morse (JasonVMo) enabled auto-merge (squash) September 23, 2026 19:35
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.

1 participant