nl_tokens: 获取原生 ( 页面、自定义 ) 组件的相关文件信息内容
pl_tokens: function getCompOriginFileInfoByType ( <mask> , filePathNoExtname , options ) { const componentExtMap = COMPONENT_FILE_EXT_NAMES [ type ] || { } ; // handle native file let componentType ; let missingMustFileExtnames = [ ] ; let fileExtnameMap = { } ; Object . keys ( componentExtMap . originFiles || { } ) . forEach ( k => { let filePath = ` ${ filePathNoExtname } ${ k } ` ; if ( ! isCompFileExists ( filePath , options . compileContext ) ) { return ; } let flagKey = componentExtMap . originFiles [ k ] ; if ( typeof flagKey === 'string' ) { // add flag for native component script componentType = flagKey ; } fileExtnameMap [ k ] = filePath ; } ) ; ( componentExtMap . mustFile || [ ] ) . forEach ( fileExt => { if ( ! fileExtnameMap . hasOwnProperty ( fileExt ) ) { missingMustFileExtnames . push ( fileExt ) ; } } ) ; return { componentType , missingMustFileExtnames , fileExtnameMap } ; }