Skip to content

fix(ci): support current Rslib bundle API - #4885

Merged
ScriptedAlchemy merged 3 commits into
mainfrom
codex/fix-bundle-size-rslib-api
Jul 10, 2026
Merged

ScriptedAlchemy merged 3 commits into
mainfrom
codex/fix-bundle-size-rslib-api

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Member

The bundle-size report still called the removed top-level build(config) API after @rslib/core moved to createRslib({ config }).build(). As a result, every package reported build is not a function, while the workflow remained green.

This change supports both Rslib API generations and fails measurement when every package bundle fails, preventing false-green reports.

Validation:

  • pnpm run ci:local --only=bundle-size
  • pnpm exec prettier --check scripts/bundle-size-report.mjs

No changeset: CI-only tooling change.

@changeset-bot

changeset-bot Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f7a7077

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@f7a7077

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@f7a7077

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@f7a7077

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@f7a7077

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@f7a7077

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@f7a7077

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@f7a7077

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@f7a7077

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@f7a7077

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@f7a7077

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@f7a7077

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@f7a7077

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rock@f7a7077

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@f7a7077

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@f7a7077

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@f7a7077

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@f7a7077

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@f7a7077

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@f7a7077

@module-federation/observability-plugin

pnpm add https://pkg.pr.new/@module-federation/observability-plugin@f7a7077

@module-federation/playground

pnpm add https://pkg.pr.new/@module-federation/playground@f7a7077

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@f7a7077

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@f7a7077

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@f7a7077

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@f7a7077

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@f7a7077

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@f7a7077

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@f7a7077

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@f7a7077

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@f7a7077

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@f7a7077

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@f7a7077

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@f7a7077

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@f7a7077

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@f7a7077

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@f7a7077

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@f7a7077

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@f7a7077

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@f7a7077

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@f7a7077

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@f7a7077

commit: f7a7077

@github-actions

github-actions Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Bundle Size Report

6 package(s) changed, 36 unchanged.

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/cli 2.3 kB +5 B (+0.2%) 2.4 kB -32 B (-1.3%)
@module-federation/core 1.0 kB +1 B (+0.1%) 1.0 kB -33 B (-3.0%)
@module-federation/devtools 30.3 kB -1 B (-0.0%) 30.3 kB -24 B (-0.1%)
@module-federation/enhanced 2.7 kB +3 B (+0.1%) 2.8 kB -43 B (-1.5%)
@module-federation/metro-plugin-rnc-cli 416 B -1 B (-0.2%) 435 B -26 B (-5.6%)
@module-federation/node 9.2 kB +5 B (+0.1%) 9.2 kB -29 B (-0.3%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 21.4 kB -19 B (-0.1%) 23.0 kB -17 B (-0.1%) +1.6 kB +2 B

Total dist (raw): 35.70 MB (no change)
Total ESM gzip: 122.9 kB (no change)
Total web bundle (gzip): 251.5 kB (+12 B (+0.0%))
Total node bundle (gzip): 254.2 kB (-187 B (-0.1%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.7 kB (no change)
Tracked ./bundler node bundle (gzip): 4.7 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6f6ca480d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/bundle-size-report.mjs Outdated
@ScriptedAlchemy
ScriptedAlchemy merged commit ee85263 into main Jul 10, 2026
23 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the codex/fix-bundle-size-rslib-api branch July 10, 2026 21:28
@2heal1 2heal1 mentioned this pull request Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant