Skip to content

feat: add recursive @export #286

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

Merged
merged 1 commit into from
May 8, 2023
Merged

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented May 8, 2023

An exported function or variable can now be further exported to ancestor scopes. To use this, create a new pod in the parent scope with:

@export foo
@export x

Note that @export must be the first character of the line.

Screenshot

Before, no recursive export, the outer scope cannot see the definitions:

After, with the recursive @export bridging pod:

@lihebi lihebi merged commit 3b0d928 into codepod-io:main May 8, 2023
@lihebi lihebi mentioned this pull request May 10, 2023
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