protobuf-javascript
protobuf-javascript copied to clipboard
How to skip useless import path
I have a import which is not used for javascript
When use this plugin to generate the code, the useless import become a require(xxx)
How to disable this.


This seems like a reasonable FR. We don't generate code for services and proto options, so this is a surprise to see.
Relevant bit of code: https://github.com/protocolbuffers/protobuf-javascript/blob/main/generator/js_generator.cc#L3651-L3657
@dibenede I want to generate both the server's code and the browser's javascript code Some import is only for server like field value validate extend Need a way to skip this, there are too may other extends can be find on github