// Sort cross-chunk exports by chunk name for determinism
Sort cross-chunk exports by chunk name for determinism
// Sort cross - chunk exports by chunk name for determinism
func (c *linkerContext) sortedCrossChunkExportItems(exportRefs map[js_ast.Ref]bool) renamer.StableRefArray {
	result := make(renamer.StableRefArray, 0, len(exportRefs))
	for ref := range exportRefs {
		result = append(result, renamer.StableRef{
			StableSourceIndex: c.graph.StableSourceIndices[ref.SourceIndex],
			Ref:               ref,
		})
	}
	sort.Sort(result)
	return result
}
func ( c * linkerContext ) sortedCrossChunkExportItems ( exportRefs map [ js_ast . Ref ] bool ) renamer . StableRefArray { result := make ( renamer . StableRefArray , 0 , len ( exportRefs ) ) for ref := range exportRefs { result = append ( result , renamer . StableRef { StableSourceIndex : c . graph . StableSourceIndices [ ref . SourceIndex ] , Ref : ref , } ) } sort . Sort ( result ) return result }
Sort cross-chunk exports by chunk name for determinism
Sort cross - chunk exports by chunk name for determinism