Skip to content

Commit e945ba1

Browse files
committed
Fix problem with async / await Babel polyfill
Polyfilling async / await is not so easy to do so before this package did only work if the async / await polyfill was already included in the application. Removing the need for async / await makes everything easier. I'm not quite sure why I used it there anyway?! Fixes #21
1 parent 68912a1 commit e945ba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export function resolvableComponentFactory(component) {
4141
resolve = newResolve;
4242
});
4343
// eslint-disable-next-line no-underscore-dangle
44-
promise._resolve = async () => {
45-
resolve(typeof component === `function` ? await component() : component);
44+
promise._resolve = () => {
45+
resolve(typeof component === `function` ? component() : component);
4646
};
4747

4848
return promise;

0 commit comments

Comments
 (0)