Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: implement lazy loading for fetch function
Instead of importing undici upfront, the module is now conditionally required using require only when the fetch function is called for the first time and the undici implementation is not already available. This lazy loading approach improves resource usage and test reliability by loading undici only when needed.
- Loading branch information