• Returns

    A function that accepts a URL pointing to a bundle that was built as a CommonJS module, and that returns a promise that resolves with the loaded module, or is rejected if the module can not be loaded.

    Parameters

    • externals: Externals = {}

      An object with shared npm dependencies that the integrator wants to provide to Feature Apps. The keys are the names of the dependencies that are used in import/require statements. The values are the modules.

    • Optional requestInit: RequestInit

      An object containing any custom settings that should be applied to the request when fetching a module with node-fetch.

    Returns ((url: string) => Promise<unknown>)

      • (url: string): Promise<unknown>
      • Parameters

        • url: string

        Returns Promise<unknown>

Generated using TypeDoc