nl_tokens: Parse the quick app single file component . Return the component file info : { tpl : Object script : Object styles : Array . <Object > customBlocks : Array . <Object > }
pl_tokens: function parse ( file , options ) { let result = sfcParser ( file , options ) ; let fileDir = path . dirname ( file . fullPath ) ; let { addFile } = options ; let importComponents = { } ; let { customBlocks } = result ; customBlocks && customBlocks . forEach ( item => { let { type , attrs } = item ; if ( attrs && type === 'import' ) { let { name , src } = attrs ; importComponents [ name ] = src ; src && addFile ( path . join ( fileDir , src + '.ux' ) ) ; } } ) ; file . importComponents = importComponents ; return <mask> ; }