Closed yanneves closed 2 years ago
Noticed build failures are due to npm@^7 compatibility issues in the dev dependency tree - I'll try and take closer look 👌
If you want to be a maintainer and use an ESM version with major semver bump, I am open to adding you.
Submit a new PR and let me know
BREAKING CHANGE: Requires Node version >= 12
This library's coding causes issues with tools like esbuild and vite due to the way it relies on dynamic
require()
statements. I'm proposing a shift to dynamic imports to introduce support for ES Modules.The bulk of the changes move imports like this:
to this:
Where
use()
is a utility function that handles import, caching, and additional options, and returns a promise.Besides bundling a shim for
Promise.any()
, this runs native. We could consider including more polyfills or building with Babel to support older Node versions. This supersedes #294.