From b4178885da86da9c6652b32b9dffc38e32ac93ab Mon Sep 17 00:00:00 2001 From: Kristjan Broder Lund Date: Fri, 13 Dec 2019 16:38:23 +0000 Subject: [PATCH 1/2] docs: clarify type of exported function fixes #34 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index efaca0b..601406e 100644 --- a/README.md +++ b/README.md @@ -73,8 +73,8 @@ And run `webpack` via your preferred method. ## Return Object Properties -Targeted modules of this loader must export either a `Function` or `Promise` -that returns an object containing a `code` property at a minimum, but can +Targeted modules of this loader must export a `Function` that returns an object, +or a `Promise` resolving an object, containing a `code` property at a minimum, but can contain any number of additional properties. ### `code` From 137ec66f88de3edace1d3e3d52209a82af20d535 Mon Sep 17 00:00:00 2001 From: Kristjan Broder Lund Date: Mon, 16 Dec 2019 11:20:10 +0000 Subject: [PATCH 2/2] docs: mention async function as an example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 601406e..3c63c99 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ And run `webpack` via your preferred method. ## Return Object Properties Targeted modules of this loader must export a `Function` that returns an object, -or a `Promise` resolving an object, containing a `code` property at a minimum, but can +or a `Promise` resolving an object (e.g. async function), containing a `code` property at a minimum, but can contain any number of additional properties. ### `code`