Skip to content

Commit 7788a56

Browse files
committed
πŸ“¦ NEW: Async/Await awesomeness
1 parent 9a09d8f commit 7788a56

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

β€Žpackages/babel-preset-cgb/index.jsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ module.exports = {
4949
pragma: 'wp.element.createElement',
5050
},
5151
],
52+
// Async/Await awesomeness https://babeljs.io/docs/en/babel-plugin-syntax-async-functions/.
53+
[ require.resolve( 'babel-plugin-syntax-async-functions' ) ],
5254
// Polyfills the runtime needed for async/await and generators.
5355
[
5456
require.resolve( 'babel-plugin-transform-runtime' ),

β€Žpackages/babel-preset-cgb/package-lock.jsonβ€Ž

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackages/babel-preset-cgb/package.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"dependencies": {
3333
"babel-plugin-transform-class-properties": "6.24.1",
3434
"babel-plugin-transform-object-rest-spread": "^6.26.0",
35+
"babel-plugin-syntax-async-functions": "^6.13.0",
3536
"babel-plugin-transform-react-jsx": "^6.24.1",
3637
"babel-plugin-transform-runtime": "^6.23.0",
3738
"babel-preset-env": "^1.6.0",

0 commit comments

Comments
Β (0)