Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support customizing the methods included in messages in CLI #2043

Open
jiaojiaodubai opened this issue Jan 28, 2025 · 0 comments
Open

Support customizing the methods included in messages in CLI #2043

jiaojiaodubai opened this issue Jan 28, 2025 · 0 comments

Comments

@jiaojiaodubai
Copy link

I am writing a browser extension script to parse the data returned the server.

In my application scenario, for those returned masses, I only need to use decode and toObject, but the current command line does not support selecting the required methods. In order to minimize the script size, I have to manually delete those redundant methods.

I would like to have some thing like:

pbjs -t static -toolsets=decode,toObject -o compiled.js file1.proto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant