def plugins_by_bundle(pm):
    """
    Organize plugins by bundle name.

    Returns a dict where the key is the bundle name and the value is a list
    of all plugins that are part of that bundle.
    """
    bundles = {}
    for plugin in pm.plugins:
        if plugin.bundle not in bundles:
            bundles[plugin.bundle] = []
        bundles[plugin.bundle].append(plugin)
    return bundles
