Skip to content

Commit

Permalink
Merge pull request serverless-heaven#484 from altruisticsoftware/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
HyperBrain authored Apr 7, 2019
2 parents ffc70bc + 1d1de0a commit 557170b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ A basic Webpack promise configuration might look like this:
const webpack = require('webpack')
const slsw = require('serverless-webpack');
module.exports = async () => {
module.exports = (async () => {
const accountId = await slsw.lib.serverless.providers.aws.getAccountId();
return {
entry: './handler.js',
Expand All @@ -112,7 +112,7 @@ module.exports = async () => {
loaders: [ ... ]
}
};
}();
})();
```
```js
// Version with promises
Expand Down

0 comments on commit 557170b

Please sign in to comment.