API reference / @backpack/config / importLoader
Function: importLoader()
Call Signature
ts
function importLoader(source): Loader;
Loader that accepts a dynamic import.
Parameters
Parameter | Type |
---|---|
source | ImportLoader <unknown > |
Returns
Call Signature
ts
function importLoader<TContext>(options): Loader;
Loader that accepts a dynamic import ands takes a specific context, which is passed to the config provider.
Type Parameters
Type Parameter |
---|
TContext |
Parameters
Parameter | Type |
---|---|
options | ImportLoaderOptions <TContext > |