compareChunkGroupsByIndex(a, b): 0 | 1 | -1<0>
|
<1>
|
<-1>
compare resultCompares chunk groups by index.
<ChunkGraph>
,
<Chunk>
>Compares the provided values and returns their ordering.
compareChunksById(a, b): 0 | 1 | -1Returns compare result.
compareChunksNatural(chunkGraph): Comparator<ChunkGraph><Comparator><Chunk>
> comparatorCompares chunks natural.
compareIds(a, b): 0 | 1 | -1Compares the provided values and returns their ordering.
compareIterables(elementComparator): Comparator<Comparator><T>
> comparator for elements<Comparator><Iterable>
<
<T>
>> comparator for iterables of elementsCompares iterables.
compareLocations(a, b): 0 | 1 | -1<0>
|
<1>
|
<-1>
sorting comparator valueCompare two locations
<Compiler>
,
<Module>
>Compare modules by their full name. This differs from comparing by identifier in that the values have been normalized to be relative to the compiler context.
<ChunkGraph>
,
<Module>
>Compares modules by id.
compareModulesByIdentifier(a, b): 0 | 1 | -1Returns compare result.
<ChunkGraph>
,
<Module>
>Compares modules by id or identifier.
<ModuleGraph>
,
<Module>
>Compares modules by post order index or identifier.
<ModuleGraph>
,
<Module>
>Compares modules by pre order index or identifier.
compareNumbers(a, b): 0 | 1 | -1Compares the provided values and returns their ordering.
compareSelect(getter, comparator): Comparator<Selector><T>
,
<R>
> getter for value<Comparator><R>
> comparator<Comparator><T>
> comparatorCompares the provided values and returns their ordering.
compareStrings(a, b): 0 | 1 | -1Compares the provided values and returns their ordering.
compareStringsNumeric(a, b): 0 | 1 | -1Compares strings numeric.
concatComparators(c1, c2, ...cRest?): Comparator<Comparator><T>
> comparator<Comparator><T>
> comparator<Comparator><T>
>[] comparators<Comparator><T>
> comparatorConcat comparators.
keepOriginalOrder(iterable): Comparator<Iterable><T>
> original ordered list<Comparator><T>
> comparatorKeep original order.
sortWithSourceOrder(dependencies, dependencySourceOrderMap, onDependencyReSort?): void<Dependency><WeakMap><Dependency>
,
<DependencySourceOrder>
> dependency source order map<Function><void>For HarmonyImportSideEffectDependency and HarmonyImportSpecifierDependency, we should prioritize import order to match the behavior of running modules directly in a JS engine without a bundler. For other types like ConstDependency, we can instead prioritize usage order. https://github.com/webpack/webpack/pull/19686
a{T}b{T}- Returns:
<-1>|<0>|<1>
Creates a cached parameterized comparator.
tArg{TArg}- Returns:
<Comparator><<T>>
input{A}- Returns:
<B>|<null>|<undefined>