Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 646 Bytes

README.tmpl.md

File metadata and controls

24 lines (20 loc) · 646 Bytes

loadable-components

Config

["loadable-components", {}]

Sometimes you need to wrap loadable with your own custom logic. There are many use cases for it, from injecting telemetry to hiding external libraries behind facade. By default loadable-components are configured to transform dynamic imports used only inside loadable helpers, but can be configured to instrument any other function of your choice.

["loadable-components", { "signatures": [
    {
        "from": "myLoadableWrapper",
        "name": "default" 
    },
    {
        "from": "myLoadableWrapper",
        "name": "lazy" 
    }]
}]

${CHANGELOG}