Closed Wonder233 closed 11 months ago
The library is ESM which use imports and not require. what you want to do is use something like:
const dnsResolve = await import('axios-cached-dns-resolve');
Such usage will report an error:
const dnsResolve = await import('axios-cached-dns-resolve');
The following are the changes while I forked to your repository. It support both esm and cjs. Can I make a PR? https://github.com/Wonder233/axios-cached-dns-resolve
hello, I built an electron and web isomorphic project, and I want to introduced as needed according to the current environment.
like follow:
Can this usage be supported?