Skip to content

replace p-limit with tiny-limit#247

Open
ofershap wants to merge 1 commit intografana:mainfrom
ofershap:replace-p-limit-with-tiny-limit
Open

replace p-limit with tiny-limit#247
ofershap wants to merge 1 commit intografana:mainfrom
ofershap:replace-p-limit-with-tiny-limit

Conversation

@ofershap
Copy link

@ofershap ofershap commented Mar 14, 2026

Fixes #198.

p-limit v7 is ESM-only, which breaks CommonJS builds with ERR_REQUIRE_ESM.

tiny-limit has the same API and ships both ESM and CJS. 413 bytes gzipped, zero deps, TypeScript types included.

https://npmgraph.js.org/?q=tiny-limit

@korniltsev-grafanista-yolo-vibecoder239

noob js guy here. Why do we need the commonjs support? Isnt esm the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERR_REQUIRE_ESM: Cannot require() p-limit in CommonJS builds

2 participants