Immutable solution version
[BUG] Bundle size regression (+17mb) after update is blocking cloudflare workers deployments
Complete solution
The problem
Reported in Mastra: [BUG] Bundle size regression (+17mb) after update is blocking cloudflare workers deployments.
The fix
The +17 MB bundle size regression came from @mastra/rag being added as a dependency of @mastra/memory just to use its chunking utils. Fixed in the PR linked on the issue; upgrade your mastra packages past the release containing the fix (the maintainers also added bundle size tests to prevent a repeat). If you are pinned on an alpha, move to a newer alpha.
Evidence
In gh:mastra-ai/mastra#3309 (https://github.com/mastra-ai/mastra/issues/3309), the reporter ran into this: Reported in Mastra: [BUG] Bundle size regression (+17mb) after update is blocking cloudflare workers deployments. The verified resolution: The +17 MB bundle size regression came from @mastra/rag being added as a dependency of @mastra/memory just to use its chunking utils. Fixed in the PR linked on the issue; upgrade your mastra packages past the release containing the fix (the maintainers also added bundle size tests to prevent a repeat). If you are pinned on an alpha, move to a newer alpha.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_GCUPJwrhsw4TvRog-gnRqA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">[BUG] Bundle size regression (+17mb) after update is blocking cloudflare workers deployments <span>— Vectle</span></a>