在移动情况下,protobufjs生成的代码对于前端情况来说太大了。当使用3个短的proto文件时,大约有300 is。
生成es6的Bash:
pbjs -t static-module -w es6 -o proto.js titan.proto --no-convert --no-delimited --no-comments发布于 2022-03-11 08:24:41
最后,我找到了一个基于protobufjs扩展机制的工具:https://github.com/mustime/minipbjs
https://stackoverflow.com/questions/70902045
复制相似问题