-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
cosmjs-types
is 43.1% (0.97 MB) of @cosmjs/stargate 0.34.0
.
https://bundlephobia.com/package/@cosmjs/[email protected]
That's the runtime bundle size, which doesn't include the TypeScript type declarations, which are even bigger.
3.4M node_modules/cosmjs-types/google/protobuf/descriptor.d.ts
Seems like the protobufjs generated code from telescope
adds a lot of bloat.
cosmjs-types/scripts/codegen.js
Line 5 in 66e5271
const telescope = require("@cosmology/telescope").default; |
Would using buf generate
be better?
https://buf.build/blog/protobuf-es-the-protocol-buffers-typescript-javascript-runtime-we-all-deserve
https://www.npmjs.com/package/@bufbuild/protobuf
https://www.npmjs.com/package/ts-proto
Metadata
Metadata
Assignees
Labels
No labels