We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5b2f5a commit 8fdb8fbCopy full SHA for 8fdb8fb
1 file changed
src/parse/index.ts
@@ -38,6 +38,11 @@ function convertAst(ast: File, templates: Template[]): void {
38
case 'BlockStatement':
39
case 'ObjectExpression':
40
case 'StaticBlock': {
41
+ if (!node.range) {
42
+ // prettier 3.7.0 onwards removed `node.range`
43
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
44
+ node.range = [node.start!, node.end!];
45
+ }
46
assert('expected range', node.range);
47
const [start, end] = node.range;
48
0 commit comments