-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamically determine BundleGroups with references from the BundleGra…
…ph (#5200) * Add test * Add another case * Use set instead of array * ¯\_(ツ)_/¯ * Fix sibling bundle worker test case * Add test case for shared sibling bundles with a common dependency * Initial commit of asset siblings in graph * Use reference edge for asset bundle references and replace bundle reference edges * Use sibling edges instead of bundle edges for siblings * Replace getReferencedBundles with recursive getSiblingBundles * Use reference edges instead of sibling edges * Use bundle to bundle reference edges for shared bundles * Default to non-recursive getReferencedBundles * Don't consider siblings if the dependency points to a bundle group * Remove bundleGraph.isAssetReferenced * Create asset references with associated destination bundles * getSiblingBundles => getReferencedBundles * Remove getBundleWithAssetAsEntry * Default getReferencedBundles to recursive * getBundleGroupsContainingBundle: use function stack instead of array stack * Define and use getReferencingBundles in isAssetReferencedByDependant * Retrieve referenced bundles in the opposite order they were added * Remove bundleGroup.bundleIds list * Handle unstable sort in node 10 * Use graph.dfs() for getReferencedBundles * Use graph.traverseAncestors() for getReferencingBundles * Implement bundleGraph.getParentBundles() in terms of getBundleGroupsContainingBundle() and getParentBundlesOfBundleGroup() * Add multiple edge types to traverseAncestors * findReachableBundleWithAsset: traverse along reference edges as well * Traverse reference edges as well in isAssetReachableFromBundle * Don't recursively check reachability when removing asset graphs * Simplify bundleGraph.isAssetReferencedByDependant() Co-authored-by: Niklas Mischkulnig <mischnic@users.noreply.github.com>
- Loading branch information
Showing
33 changed files
with
415 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.