thesayyn / protoc-gen-ts

Compile protocol buffer messages to TypeScript.
MIT License
360 stars 74 forks source link

import_style=es6 ? #244

Closed ivegotwings closed 8 months ago

ivegotwings commented 10 months ago

Can I use import_style=es6? I tried using it, when I compare the diff from commonjs I see all the imports removed. Since there are no imports it's causing errors.

Screenshot 2023-12-13 at 11 20 49 AM

The compilation works fine, at runtime I get the error goog is not defined.

thesayyn commented 10 months ago

protoc-gen-ts doesn't have such option and the generated code doesn't seem to be generated by protoc-gen-ts.