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

**URL:** <https://forum.serverless.com/t/best-way-to-get-es7-async-await-and-import-export-syntax-working/1412>\
**Category:** Serverless Framework\
**Created:** [March 1, 2017, 8:17am UTC](https://forum.serverless.com/t/best-way-to-get-es7-async-await-and-import-export-syntax-working/1412 "2017-03-01T08:17:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrelevi](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@andrelevi](https://forum.serverless.com/u/andrelevi)\
**Post date:** [March 1, 2017, 8:17am UTC](https://forum.serverless.com/t/best-way-to-get-es7-async-await-and-import-export-syntax-working/1412/1 "2017-03-01T08:17:56Z")

</div>

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?

Thanks!

---

<div class="post-metadata">

**Author:** ![rowanu](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/rowanu/32/75_2.png) [@rowanu](https://forum.serverless.com/u/rowanu)\
**Post date:** [March 1, 2017, 10:23pm UTC](https://forum.serverless.com/t/best-way-to-get-es7-async-await-and-import-export-syntax-working/1412/2 "2017-03-01T22:23:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/jayair/32/397_2.png) [@jayair](https://forum.serverless.com/u/jayair)\
**Post date:** [March 31, 2017, 12:00am UTC](https://forum.serverless.com/t/best-way-to-get-es7-async-await-and-import-export-syntax-working/1412/3 "2017-03-31T00:00:59Z")

</div>

I created a service to add support for ES7 async/await to Serverless called [Serverless ES7](https://github.com/AnomalyInnovations/serverless-es7) and wrote about it [here](http://serverless-stack.com/chapters/serverless-es7-service.html).

You can use it by running `serverless install --url https://github.com/AnomalyInnovations/serverless-es7`

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