You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that @puppeteer/browsers seems to be classified as cjs although the exports map contains both require and import. It looks like dual esm/cjs packages might not be always detected correctly?
Also, I verified that for @puppeteer/browsers the ESM version is correctly picked up by Node's module loader.
The text was updated successfully, but these errors were encountered:
Impossible to track every engine, and what it will end up with, and whether that actually works at runtime.
But, "type": "commonjs", is what I see, and that's probably what the code uses to decide. Instead of looking further.
PR welcome, if you want to look into this!
I have noticed that
@puppeteer/browsers
seems to be classified as cjs although the exports map contains bothrequire
andimport
. It looks like dual esm/cjs packages might not be always detected correctly?Also, I verified that for
@puppeteer/browsers
the ESM version is correctly picked up by Node's module loader.The text was updated successfully, but these errors were encountered: