Replies: 3 comments 6 replies
-
I fiddled around a little and got it to work with:
and use processData.xxxx everywhere. As processData_pb.js, processData_pb.d.ts and ProcessDataServiceClientPb.ts are generated files I wouldn't want to adapt them every time they change. Has anyone a suggestion how to avoid it? |
Beta Was this translation helpful? Give feedback.
-
@FredKSchott can you help us here? Pleeeease? 😭 |
Beta Was this translation helpful? Give feedback.
-
I think including the generated .js file will be helpful too.
it will be transformed by tools like babel and typescript to to this:
redux-logger uses rollup to target es5 you can check the source code. The problem is that snowpack does not seem to understand this and what its do when its doesn't find any exports like in this case its transform it to this:
but we really want is |
Beta Was this translation helpful? Give feedback.
-
I have some protoc-generated protobuf code (--js_out=import_style=commonjs) with grpc code generation (protoc-gen-grpc-web plugin with typescript support).
It generates a javascript and type file for the protobuf serialisation and a typescript file for grpc.
The files are here on gist:
processData_pb.js
processData_pb.d.ts
ProcessDataServiceClientPb.ts
In my Typescript sources I can use the generated Types (with CRA) like this:
The first line crashes with
snowpack start
with:The Protoc documentation states:
Is there a workaround for this? At the moment that is a showstopper for me using Snowpack :(
Beta Was this translation helpful? Give feedback.
All reactions