feat(WAProto): Optimize protobuf generation for 80%+ bundle size reduction (#1665)
* chore: remove comments and veirfy from generated proto files (improve size) * refactor: replace fromObject with create for proto message instantiation and flag no beautiful * chore: lint issues
This commit is contained in:
committed by
GitHub
parent
9e04cce8d3
commit
4d4339dae6
@@ -1,3 +1,3 @@
|
||||
yarn pbjs -t static-module -w es6 --no-bundle -o ./index.js ./WAProto.proto;
|
||||
yarn pbts -o ./index.d.ts ./index.js;
|
||||
yarn pbjs -t static-module --no-convert --no-beautify -w es6 --no-bundle --no-delimited --no-verify --no-comments -o ./index.js ./WAProto.proto;
|
||||
yarn pbjs -t static-module --no-convert --no-beautify -w es6 --no-bundle --no-delimited --no-verify ./WAProto.proto | yarn pbts --no-comments -o ./index.d.ts -;
|
||||
node ./fix-imports.js
|
||||
|
||||
Vendored
+2773
-45558
File diff suppressed because it is too large
Load Diff
+16911
-144632
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user