Skip to content

Commit

Permalink
adding changes to avoind undefined sources
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonrobledo committed Apr 27, 2023
1 parent c7cc22e commit 2a198a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ function asyncHelpers(hbs) {

mergeSource(varDeclarations) {
const sources = super.mergeSource(varDeclarations)
return sources.prepend('return (async () => {').add(' })()')
sources.prepend('return (async () => {')
sources.add(' })()')
return sources
}

appendToBuffer(source, location, explicit) {
Expand Down

0 comments on commit 2a198a4

Please sign in to comment.