if (
      this.getBundlesWithAsset(asset).filter(
        b =>
          b.target.name === bundle.target.name &&
          b.target.distDir === bundle.target.distDir,
      ).length > 1
    ) {
      return true;
    }
Remove a bundle from the bundle graph. Remove its bundle group if it is
the only bundle in the group.