nl_tokens: Process the component dependence sub components based on usingComponent info defined in json .
pl_tokens: function compile ( file , options ) { const { resolve : resolveDep , logger } = options ; try { let componentConf = JSON . parse ( file . content . toString ( ) ) ; let usingComponents = componentConf [ USING_COMPONENT_KEY ] ; if ( ! usingComponents || ! file . component ) { return { content : file . content } ; } let result = { } ; let scriptFile = file . component ; Object . keys ( usingComponents ) . forEach ( k => { let value = usingComponents [ k ] ; if ( ! value ) { return ; } let resolvePath = resolveDep ( scriptFile , value ) ; result [ toHyphen ( k ) ] = resolvePath || value ; let resolveModInfo = scriptFile . resolvedModIds [ value ] ; let componentFile = resolveModInfo && resolveModInfo . file ; componentFile && analyseNativeComponent ( componentFile , options ) ; } ) ; // update usingComponent information componentConf [ USING_COMPONENT_KEY ] = result ; return { content : JSON . stringify ( componentConf , null , 4 ) } ; } catch ( ex ) { logger . error ( ` ${ file . path } ` , ex . stack || ex . toString ( ) ) ; } return { <mask> : file . content } ; }