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
By default interopDefault returns a proxified object that allows mixed syntax usage. We might support interopDefault({ default: 'test', x: 123 }, { strict: true }) to always return default key.
Environment
node 18
Reproduction
Describe the bug
I would expect in this case that the original module would be returned rather the just the default export
test
Additional context
Checking if newModule is an object after it is assigned here: https://github.com/unjs/mlly/blob/main/src/cjs.ts#L38C3-L38C3 and returning the sourceModule instead if its not an object or function should work
Logs
No response
The text was updated successfully, but these errors were encountered: