You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a --sparse option which will only generate the protos defined/used in protocol.proto. So if you split things up so that all your js-needed protos were referenced in some file, you could use that as the input. The --sparse option has some issues with nested types sometimes, but there's a PR here #1528 which address them.
protobuf.js version: 7.0.0
protobufjs-cli version: 1.0.0
How to generate static code only for necessary types from big definitions?
Current version generates static code for all types defined in
protocol.proto
:I'd like to have an option like
--types=Transaction,Contract
to generate static code only forTransaction
andContract
types.Motivation: reduce javascript bundle size.
The text was updated successfully, but these errors were encountered: