Well I tested graphql-request, a package that does have peer dependencies from graphql. Bundlephobia estimates 19kb minified bundle size, your tool says 50kb minified. But the graph appears to show things from graphql, so I think it's including peer dependencies in the estimate?
When Peer dependencies are excluded from installation, it should also be excluded from the build.
Reported here: https://twitter.com/0xGOATMILK/status/1681672130105073668