Ignoring backend-only options - add a `force_exclude_options` plugin option
See original GitHub issueRight now (v2.0.0-alpha.27
) service and message options from .proto
files are always generated for ServiceType
.
It would be nice to have the ability to ignore all (or blacklist some) options for browser clients if they are used only on the backend.
These options just increase the final bundle size without ever being used or in the worst case can leak some backend implementation details, that shouldn’t be visible on the frontend to everyone.
The official protoc plugin for JS is not including options in the generated files, and I think that this is a reasonable default behaviour.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Adding new plugin option not available | WordPress.org
Hey everyone,. I'm trying to install this plugin but when I go to plugins in WordPress I don't see the option to add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Added in https://github.com/timostamm/protobuf-ts/commit/ab9d65e0f66f6957efb9d8c96f71c526b5c698b8
Released in v2.0.4.