Closed jpshack-at-palomar closed 4 months ago
hello, using patch-package
you can do the following:
diff --git a/node_modules/p-limit/index.js b/node_modules/p-limit/index.js
-import {AsyncResource} from '#async_hooks';
+import {AsyncResource} from './async-hooks-stub';
the dev for some reason seem to not want to change it.
The latest version no longer uses subpath exports: https://github.com/sindresorhus/p-limit/releases/tag/v6.0.0
node v20.14.0 typescript 5.5.2 p-limit 5.0.0
No bundlers in use.
tsconfig.json:
I see https://github.com/sindresorhus/p-limit/issues/72 but it appears to have been closed and locked without the issue having been bottomed out for ESM / typescript.
Pointers greatly appreciated.