nl_tokens: 解析 amd 依赖
pl_tokens: function ( file , match , literal ) { // literal 可能是 'moduleId'、'[ "module1", "module2" ]'、xxx（非法 js 变量） literal = literal . trim ( ) ; var resources ; try { var factory = new Function ( 'return ' + literal ) ; resources = factory ( ) ; } catch ( e ) { console . log ( '[INFO][amd id parse error]' ) ; console . log ( match ) ; console . log ( '' ) ; resources = literal ; } if ( ! resources ) { return ; } if ( ! Array . isArray ( resources ) ) { resources = [ resources ] ; } var me = this ; var config = me . getAmdConfig ( file ) ; var <mask> = [ ] ; resources . forEach ( function ( resourceId ) { var filePath = resourceIdToFilePath ( resourceId , config ) ; if ( filePath ) { result . push ( { amd : true , raw : resourceId , absolute : filePath } ) ; } } ) ; return result ; }