Skip to content

Commit

Permalink
feat: allow the additionalData to be async (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonbloom authored Nov 10, 2020
1 parent b32d7e7 commit 62c6934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function lessLoader(source) {
if (typeof options.additionalData !== 'undefined') {
data =
typeof options.additionalData === 'function'
? `${options.additionalData(data, this)}`
? `${await options.additionalData(data, this)}`
: `${options.additionalData}\n${data}`;
}

Expand Down

0 comments on commit 62c6934

Please sign in to comment.