Parses a main.dart.js size out of a web build output directory's
manifest-ish file listing, falling back to direct byte counting by the
CLI (which owns the file paths). Kept here so the size unit is one
definition.
Sums the bytes of the package:<package> subtree of an analyze-size
JSON tree: the node's own value (null on pure containers) plus every
descendant's value, exactly as the DevTools size analysis accounts bytes.