File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/compiler/compile/nodes Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { ConstTag as ConstTagType } from '../../interfaces';
7
7
import { INodeAllowConstTag } from './interfaces' ;
8
8
import { walk } from 'estree-walker' ;
9
9
import { extract_identifiers } from 'periscopic' ;
10
- import is_reference from 'is-reference' ;
10
+ import is_reference , { NodeWithPropertyDefinition } from 'is-reference' ;
11
11
import get_object from '../utils/get_object' ;
12
12
import compiler_errors from '../compiler_errors' ;
13
13
@@ -44,8 +44,8 @@ export default class ConstTag extends Node {
44
44
45
45
walk ( info . expression . right , {
46
46
enter ( node , parent ) {
47
- if ( is_reference ( node , parent ) ) {
48
- const identifier = get_object ( node ) ;
47
+ if ( is_reference ( node as NodeWithPropertyDefinition , parent as NodeWithPropertyDefinition ) ) {
48
+ const identifier = get_object ( node as any ) ;
49
49
const { name } = identifier ;
50
50
dependencies . add ( name ) ;
51
51
}
You can’t perform that action at this time.
0 commit comments