How do I build a single js file for AWS Lambda nodejs runtime

后端 未结 4 1557
不知归路
不知归路 2021-01-31 10:56

We are working on a project/framework that aids in deploying and maintaining code in AWS Lambda. I want to build/bundle all node.js code for a lambda function into one js file b

4条回答
  •  自闭症患者
    2021-01-31 11:47

    Possible answer might be making the function behave like a bootloader. Make the function download packaged code from S3, unpack it and run it.

    Having to touch the code the way you're proposing seems like a bad idea that could result in unpredictable and hard to debug bugs.

提交回复
热议问题