Skip to content

Handle undefined default export when importing module - #4539

Merged
knolleary merged 1 commit into
masterfrom
4536-handle-undefined-default-export
Feb 5, 2024
Merged

knolleary merged 1 commit into
masterfrom
4536-handle-undefined-default-export

Conversation

@knolleary

Copy link
Copy Markdown
Member

Fixes #4536

If an ESM module doesn't define a default export, the Function wasn't exposing anything the module had to share.

This is a quick fix that if default is not defined it exposes the whole module to the Function node.

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.

Named exports from ESM modules not accessible in function nodes

1 participant