Skip to content

Commit 64d4e4c

Browse files
committedMar 16, 2023
refactor: merge user parser options on top of defaults
1 parent 8e0709d commit 64d4e4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ function processTree(options) {
181181

182182
log(`${++processCounter}) Processing "${currentNode.tag}" from "${componentPath}"`, 'processTree');
183183

184-
let nextNode = parser(readFileSync(componentPath, 'utf8'), options.parserOptions);
184+
let nextNode = parser(
185+
readFileSync(componentPath, 'utf8'),
186+
mergeWith({recognizeSelfClosing: true}, options.parserOptions)
187+
);
185188

186189
// Set filled slots
187190
setFilledSlots(currentNode, filledSlots, options);

0 commit comments

Comments
 (0)
Please sign in to comment.