Skip to content

Commit

Permalink
fix: locals option and no content passed
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jan 29, 2021
1 parent 0865f5d commit 0b0f76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function parse(options) {
return parseLocals(options.locals, node.attrs.locals)(node.content);
}

if (!isEmpty(options.locals)) {
if (node.content && !isEmpty(options.locals)) {
return parseLocals(options.locals)(node.content);
}

Expand Down

0 comments on commit 0b0f76a

Please sign in to comment.