Backstage
    Preparing search index...
    dynamicPluginsFeatureLoader: (
        options?: DynamicPluginsFeatureLoaderOptions,
    ) => BackendFeature & BackendFeature = ...

    A backend feature loader that fully enable backend dynamic plugins. More precisely it:

    • adds the dynamic plugins root service (typically depended upon by plugins),
    • adds additional required features to allow supporting dynamic plugins config schemas in the frontend application and the backend root logger,
    • uses the dynamic plugins service to discover and expose dynamic plugins as features.

    Using the dynamicPluginsFeatureLoader loader in a backend instance:

    //...
    import { createBackend } from '@backstage/backend-defaults';
    import { dynamicPluginsFeatureLoader } from '@backstage/backend-dynamic-feature-service';

    const backend = createBackend();
    backend.add(dynamicPluginsFeatureLoader);
    //...
    backend.start();

    Passing options to the dynamicPluginsFeatureLoader loader in a backend instance:

    //...
    import { createBackend } from '@backstage/backend-defaults';
    import { dynamicPluginsFeatureLoader } from '@backstage/backend-dynamic-feature-service';
    import { myCustomModuleLoader } from './myCustomModuleLoader';
    import { myCustomSchemaLocator } from './myCustomSchemaLocator';
    import { myConfiguredLoggerOptions } from './myConfiguredLoggerOptions';

    const backend = createBackend();
    backend.add(dynamicPluginsFeatureLoader({
    moduleLoader: myCustomModuleLoader,
    schemaLocator: myCustomSchemaLocator,
    logger: (config) => myConfiguredLoggerOptions(config),
    }));
    //...
    backend.start();