Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: default import function instantiation #104

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Conversation

guybedford
Copy link
Collaborator

@guybedford guybedford commented Jul 4, 2023

Resolves the JS output case described in #103.

When using --instantiation, with kebab function imports of a world of the form import x: func () -> (), instead of outputting:

const x = imports.x.default;

we were outputting:

const x = imports.default;

@guybedford guybedford merged commit a9ea8ea into main Jul 4, 2023
4 checks passed
@guybedford guybedford deleted the fn-import-default-fix branch July 4, 2023 17:41
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.

1 participant