We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5b2f5a commit 5cc7e52Copy full SHA for 5cc7e52
1 file changed
src/parse/index.ts
@@ -38,8 +38,8 @@ function convertAst(ast: File, templates: Template[]): void {
38
case 'BlockStatement':
39
case 'ObjectExpression':
40
case 'StaticBlock': {
41
- assert('expected range', node.range);
42
- const [start, end] = node.range;
+ assert('expected range', node.start && node.end);
+ const [start, end] = [node.start, node.end];
43
44
const templateIndex = templates.findIndex((template) => {
45
const { utf16Range } = template;
0 commit comments