I'm interested in how people might approach this.
We are using Thundra APM tracing via in a provided lambda layer.
This also makes available the @thundra/core library. We would like to use the thundra object to do some custom tagging in the code and since it's in the layer the lambda doesn't need to include this as a dependency. However, it is needed for building the lambda in Seed.
Typically you'd add the library to devDependencies. However, since We have NODE_ENV set to production for the lambda the devDependencies are excluded from the build. So, at the moment we have it as a dependency to make the build in Seed succeed. How can we allow the build to succeed without bundling or installing the library? This feels like a newbie question, so maybe there's something obvious/simple I'm missing!