Closed BaluVyamajala closed 1 year ago
Just out of curiosity, what's the motivation for using ESBuild on Node?
Just out of curiosity, what's the motivation for using ESBuild on Node?
Currently we are building a lambda function in AWS and to make these efficient, we build a minified file making it super small and without including entire node_modules folder. For example https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_nodejs-readme.html library uses esbuild behind the scenes.
OK. I've done this before. From memory: you need to add a build step to move the proto file. Since it is dynamically loaded and is not a .js asset, the builder needs to be made aware of it.
I'm going to close this for now. If you figure out a way to do this, let me know.
When library is used in applications which uses external builds , direct references to files example: https://github.com/camunda-community-hub/zeebe-client-node-js/blob/master/src/zb/ZBClient.ts#L1292 throwing errors.
Current Behavior
Possible solutions
Rather than directly referencing a path to a file. we could use require/import the file and use it.
Steps to Reproduce
Sample Repo https://github.com/BaluVyamajala/camunda-zrpc-esbuild-test