Skip to content

fix: use react runtime core to reduce bundle#2628

Merged
chanceaclark merged 1 commit intointegrations/makeswiftfrom
arvin/use-lightweight-react-core-runtime
Oct 31, 2025
Merged

fix: use react runtime core to reduce bundle#2628
chanceaclark merged 1 commit intointegrations/makeswiftfrom
arvin/use-lightweight-react-core-runtime

Conversation

@arvinpoddar
Copy link
Copy Markdown

@arvinpoddar arvinpoddar commented Oct 1, 2025

What/Why?

Upgrades to the latest @makeswift/runtime version, which includes a new ReactRuntimeCore that does not include dependencies for builtin components. We now manually register the builtins we want, omitting registrations for components that are intentionally omitted or overridden in Catalyst.

Reduces the gzipped bundle size from 945.55KB -> 826.3KB (119.25KB reduction, or 12.6% decrease). Stats from already installed Next bundle analyzer.

Testing

Migration

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Oct 1, 2025

🦋 Changeset detected

Latest commit: d52d6f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-makeswift Patch

Not sure what this means? Click here to learn what changesets are.

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
b2b-makeswift Error Error Oct 31, 2025 8:18pm
catalyst-b2b Ready Ready Preview Comment Oct 31, 2025 8:18pm
catalyst-canary Ready Ready Preview Comment Oct 31, 2025 8:18pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
catalyst Ignored Ignored Oct 31, 2025 8:18pm

@arvinpoddar arvinpoddar force-pushed the arvin/use-lightweight-react-core-runtime branch from 5013a2c to b610647 Compare October 1, 2025 22:00
@arvinpoddar arvinpoddar force-pushed the arvin/use-lightweight-react-core-runtime branch from b610647 to 0e819d0 Compare October 1, 2025 22:16
@arvinpoddar arvinpoddar force-pushed the arvin/use-lightweight-react-core-runtime branch from 0e819d0 to 7799081 Compare October 5, 2025 16:23
@arvinpoddar arvinpoddar force-pushed the arvin/use-lightweight-react-core-runtime branch from 7799081 to 8b53cab Compare October 6, 2025 19:40
@arvinpoddar arvinpoddar marked this pull request as ready for review October 6, 2025 19:41
@arvinpoddar arvinpoddar requested a review from a team October 6, 2025 19:41
@arvinpoddar arvinpoddar self-assigned this Oct 6, 2025
@arvinpoddar arvinpoddar requested a review from agurtovoy October 6, 2025 19:45
Upgrades to the latest @makeswift/runtime version, which includes a new
ReactRuntimeCore that does not include dependencies for builtin components.
We now manually register the builtins we want, omitting registrations for
components that are intentionally omitted or overridden in Catalyst.
@chanceaclark chanceaclark merged commit dc75f66 into integrations/makeswift Oct 31, 2025
12 checks passed
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.

3 participants