I am using y18n in my lambda functions. Some days ago i started to use the plugin serverless-webpack. y18n use the folder locales.
I had problems because i did not know how to include the locales folder using webpack. I solved the problem using a layer but it is not a good solution because i need to update the locales when i create new functions and i update the locales files, every time that i do this i have to deploy the layer and update the layer index in me serverless.yml file. So, i have to deploy all the functions when i make small changes. Do you know any way to include the locales folder with webpack?