protobuf.js
protobuf.js copied to clipboard
pbjs: Support generating one .js file per .proto file
I have a shared library of .proto
files. I'd like to be able to publish it as an npm module consisting of one .js
file per .proto
file. This will enable any consumer of the module to import only what they need, and so have a smaller bundle size which is specific to the application.
Is this possible with pbjs
?
Unfortunately, pbjs isn't able to output multiple files, yet, but this is still something I want to do.
Ah, dang. Thanks for the response, and I appreciate all of the work on this library.
If you don't mind, I'd like to keep this issue open as a reminder and to track eventual progress.
Out of curiosity, what code changes are required to implement this feature?
Has there been any advancement on this front?
+1
+1
+1
Thanks for your great work. I wonder if still has any plan on this feature?
For comparison, this feature is supported by Google's protoc.
How is this going?
I'm using ts-proto to do this now. Highly recommended.