-
Notifications
You must be signed in to change notification settings - Fork 132
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
Does it support generating ES6 specification JS files and using them in grPC-Web #312
Comments
It generates pure TypeScript, from there you can compile it however you like. I'm using @protobuf-ts/grpcweb-transport myself, and I'm more that happy with it. |
Thank you for your reply. Can I understand that I can develop in grpc-web using pure TypeScript and therefore there is no JS file ES6 import problem because there are no (or no need for) JS files |
You cannot use protobuf-ts with grpc-web and protoc-gen-grpc-web. Both are hardwired for google-protobuf and But you can use protobuf-ts as a replacement. The transport Sebastian mentioned implements gRPC-web. And protobuf-ts can generate TypeScript, or JavaScript with ES6 imports and exports, or JavaScript with CommonJS. |
Hi @timostamm, Are there any concerns to add |
It would be pretty great if we could do that - enabled with an option - and make it default some time later. See #182 |
I see, it's already in progress right. Thanks for your hard work ❤️ |
Does it support generating ES6 specification JS files and using them in grPC-Web
The text was updated successfully, but these errors were encountered: