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 22a6c0d commit 1b2dbfcCopy full SHA for 1b2dbfc
packages/taroize/src/template.ts
@@ -30,6 +30,9 @@ function buildTemplateName (name: string) {
30
}
31
32
export function parseTemplate (path: NodePath<t.JSXElement>, dirPath: string) {
33
+ if (!path.container) {
34
+ return
35
+ }
36
const openingElement = path.get('openingElement')
37
const attrs = openingElement.get('attributes')
38
const is = attrs.find(attr => attr.get('name').isJSXIdentifier({ name: 'is' }))
0 commit comments