Best way to get ES7 Async/Await and Import/Export syntax working?


I’ve seen some different ways of getting webpack/babel to transpile es6/7 code as Serverless plugins, but they seem to be third-party solutions, and I’m wondering if there is a more modern/popular solution that I am not away of.

Is there a recommended way to get ES6/7 support working with Serverless services?


[Help] ES6/7 & Async await Best Practise

There’s nothing wrong with using plugins in Serverless - even the AWS support is a plugin!


I created a service to add support for ES7 async/await to Serverless called Serverless ES7 and wrote about it here.

You can use it by running serverless install --url

It automatically picks up your handler functions and generates proper error messages with line numbers in CloudWatch.