Open edkimmel opened 10 months ago
Amazing job and quite interesting implementation. Big kudos for comprehensive tests.
However, let me be clear - I am going to add this PR to the list of all other things one way or another assigned to me and I cannot provide you any ETA for actual resolution. My presence in GitHub lands is quite limited nowadays.
Summary
Adds loadable.hook and lazy.hook as additional ways to load a dynamic module via @loadable
A common use case is to use some large third party library as part of a hook in first party code. By exposing a hook-based API in @loadable, it becomes trivial to dynamically load that library module.
Test plan
loadableHook.test.js
has been created mirroringloadable.test.js
where applicable. An example for the hook api was created in the repository.