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 004a096 commit f34a651Copy full SHA for f34a651
src/lib/schematics/utils/html.ts
@@ -11,7 +11,7 @@ import {Project} from './devkit-utils/config';
11
*/
12
export function getHeadTag(host: Tree, src: string) {
13
const document = parse5.parse(src,
14
- {locationInfo: true}) as parse5.AST.Default.Document;
+ {sourceCodeLocationInfo: true}) as parse5.AST.Default.Document;
15
16
let head;
17
const visit = (nodes: parse5.AST.Default.Node[]) => {
@@ -34,7 +34,7 @@ export function getHeadTag(host: Tree, src: string) {
34
}
35
36
return {
37
- position: head.__location.startTag.endOffset
+ position: head.sourceCodeLocation.startTag.endOffset
38
};
39
40
0 commit comments