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
It seems that keycode.js is missing all the named exports that should be extracted from the source cjs module and only has the default, combined one. Might this be because keycode does things like var codes = exports.code = exports.codes = {...} and trips the esm translation algorithm?
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to run a third party application that imports
{ codes }
as a name dependency fromkeycode
:This works perfectly when bundled, but doesn't work with esm.sh:
-> Uncaught SyntaxError: The requested module 'https://esm.sh/v86/keycode@2.2.1/es2022/keycode.js' does not provide an export named 'codes'
It seems that
keycode.js
is missing all the named exports that should be extracted from the source cjs module and only has the default, combined one. Might this be because keycode does things likevar codes = exports.code = exports.codes = {...}
and trips the esm translation algorithm?The text was updated successfully, but these errors were encountered: