Loading...
Loading...
Debug and shrink a Convex deployment's bundle with @convex-dev/bundle-analyzer: find duplicate packages, "use node" code leaking into the Convex runtime, dev dependencies and test files in deployed code, then fix and measure before/after. TRIGGER on 'Total module size exceeded the unzipped maximum' (ModulesTooLarge), out-of-memory during push, slow "use node" cold starts, or 'why is my Convex bundle/push so big'. SKIP slow-query and spend questions.
npx skill4agent add convex/agent-skills convex-bundle-sizeModulesTooLarge"use node"@convex-dev/bundle-analyzerconvex/_generated/npx convex codegennpx convex dev --onceconvexnpx -y @convex-dev/bundle-analyzer summary"use node"modulesnpx -y @convex-dev/bundle-analyzer insights --json{ "insights": [...] }savedByteskindleveltitledetailsavedBytessavedCodeBytessavedSourceMapBytesbuildIdssubjectitemsrowssavedBytessummarypackages <name>files <path-fragment>zod@3.25.76/convex/lib/modules [module]components--json--limit <n>explorekindduplicate-packagealternate-package-implementationsuse-node-file-in-convex-runtime"use node"fixes"use node"add-use-node"use node""use node"movepackage-in-both-runtimesexternal-package-candidate"use node"node.externalPackagessavedBytesdev-dependency-bundleditems[].importedBytest-file-bundledpackage-in-many-componentssummarynpx convex dev --once"use node"external-package-candidatemodules"use node"convexconvex