Skip to content

Commit c53f5ad

Browse files
committed
Fix: template element should have parent property
1 parent 94d0114 commit c53f5ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/parse-component.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ function parse(code, options) {
158158
tokenGenerator,
159159
templateOptions
160160
)
161+
if (ast.templateBody != null) {
162+
ast.templateBody.parent = ast
163+
}
161164
}
162165
else {
163166
ast = scriptParser._parseScript(code)

0 commit comments

Comments
 (0)