We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d57e3c7 commit b7b547bCopy full SHA for b7b547b
packages/shared/src/imports/parseTemplate.ts
@@ -1,8 +1,8 @@
1
import { camelize, capitalize } from 'vue'
2
3
export function parseTemplate (source: string) {
4
- const components = createSet(source.matchAll(/(?:var|const) (\w+) = _resolveComponent\("([\w-.]+)"\);?/gm))
5
- const directives = createSet(source.matchAll(/(?:var|const) (\w+) = _resolveDirective\("([\w-.]+)"\);?/gm))
+ const components = createSet(source.matchAll(/(?:var|const) (\w+) *?= *?_resolveComponent\("([\w-.]+)"\);?/gm))
+ const directives = createSet(source.matchAll(/(?:var|const) (\w+) *?= *?_resolveDirective\("([\w-.]+)"\);?/gm))
6
7
return { components, directives }
8
}
0 commit comments