fix(compiler): build correct ancestryPaths in getChildPath
MODIFY
internal/compiler/lib/CompilerPath.ts
internal/compiler/lib/CompilerPath.ts
@@ -170,7 +170,7 @@ export default class CompilerPath {
this.context,
{
parentScope: this.scope,
- ancestryPaths: this.ancestryPaths.concat([this]),
+ ancestryPaths: [this, ...this.ancestryPaths],
nodeKey: key,
},
);

fix(compiler): build correct ancestryPaths in getChildPath (#1624)