nl_tokens: Find the import element Notice : currently it does not support multiple import elements in template .
pl_tokens: function findImportElement ( node ) { let parent = node . parent ; if ( ! parent ) { return ; } let children = parent . children ; let found ; children . some ( item => { if ( item . type === 'tag' && <mask> . name === 'import' ) { found = item ; return true ; } return false ; } ) ; if ( found ) { return found ; } return findImportElement ( parent ) ; }