nl_tokens: Find the filename of a chunk which matches either the id or path provided .
pl_tokens: function findChunkFile ( chunk , chunkId , outputFilePath ) { for ( let i = 0 ; i < chunk . <mask> . length ; i ++ ) { const chunkFile = chunk . files [ i ] ; let normalizedOutputFilePath = outputFilePath . replace ( / ^\.\/ / , '' ) ; if ( ! / \.js$ / . test ( chunkFile ) ) { normalizedOutputFilePath = normalizedOutputFilePath . substr ( 0 , normalizedOutputFilePath . length - 3 ) ; } if ( normalizedOutputFilePath === chunkFile ) { return chunkFile ; } } if ( chunk . id === chunkId ) { return chunk . files [ 0 ] ; } return undefined ; // eslint-disable-line no-undefined }