Skip to content

Commit 8a369ca

Browse files
committed
Disable lowerCaseTags option to avoid turning things like MyComponent to mycomponent
1 parent a4a6946 commit 8a369ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ function resolveComponent(currentSource, context) {
124124
*/
125125
function parseDOM(source) {
126126
// Use recognizeSelfClosing option to handle tags like <spacer />
127-
return htmlparser.parseDOM(source, {recognizeSelfClosing:true});
127+
// Disable lowerCaseTags option to avoid turning things like MyComponent to mycomponent
128+
return htmlparser.parseDOM(source, {recognizeSelfClosing:true, lowerCaseTags: false});
128129
}
129130

130131
/**

0 commit comments

Comments
 (0)