Using Worker Threads with a lambda function?

Hi :wave:. I’m using sst for a reasonably sized backend service. I have a lambda function that a) needs a quick response time (sub 1 second is quick in this context) but b) also needs to perform some CPU intensive processing. I’d like to use node.js’s worker threads feature Worker threads | Node.js v19.0.0 Documentation for this. This seems challenging though, as I used TypeScript for my lambdas (so files are *.ts files that need transpilation) and as sst uses minification when creating the JS to upload to AWS for a lambda function

Does anyone have any experience with using web workers in an sst managed lambda function?

Thanks
Simon