serverless-runtime-babel
serverless-runtime-babel copied to clipboard
Error after deployment with babel-runtime
The babel transformation seems to add a require('../package.json') to the serverless deployment package which is not in the deployment zip.
errorMessage "Cannot find module '../package.json'" errorType "Error" stackTrace
There is no problem in the deployment as long as there are no dependencies required in the lambda function.
How do I configure the babel runtime to correctly deploy my function?