You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, protobuf-ts create files with imports like this:
// @generated by protobuf-ts 2.9.4// @generated from protobuf file "connection_handler.proto" (package "myapp.connection_handler", syntax proto3)// tslint:disableimport{Empty}from"./common";
However, when using type: "module" and depending on your tsconfig, you're forced to put the .js extension for it to work, would it be possible to add an option to the plugin to generate it like this?
// @generated by protobuf-ts 2.9.4// @generated from protobuf file "connection_handler.proto" (package "myapp.connection_handler", syntax proto3)// tslint:disableimport{Empty}from"./common.js";
The text was updated successfully, but these errors were encountered:
In the meanwhile, if anyone is facing the same issue, I was able to get around it by installing replace-in-files-cli and doing this in my compile script:
Currently, protobuf-ts create files with imports like this:
However, when using
type: "module"
and depending on your tsconfig, you're forced to put the.js
extension for it to work, would it be possible to add an option to the plugin to generate it like this?The text was updated successfully, but these errors were encountered: