Skip to content

Normative: use null return instead of error for un-syncable imports#19

Open
guybedford wants to merge 1 commit intomainfrom
null-return
Open

Normative: use null return instead of error for un-syncable imports#19
guybedford wants to merge 1 commit intomainfrom
null-return

Conversation

@guybedford
Copy link
Copy Markdown
Collaborator

Resolves #17.

Instead of throwing an error when it is not possible to synchronously import a module, null is returned instead, for better ergonomics, and support with optional chaining style expressions.

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.

Returning null instead of a sync import error

1 participant