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

Primitive for knowing the path of the generated code #5018

Closed
rickyvetter opened this issue Mar 19, 2021 · 2 comments
Closed

Primitive for knowing the path of the generated code #5018

rickyvetter opened this issue Mar 19, 2021 · 2 comments

Comments

@rickyvetter
Copy link
Contributor

Similar to __MODULE__, it would be useful to have a meta primitive like __PATH__OF__ that could provide the path that would be used to import a module. Would be useful for implementing dynamic imports. Potential usage might look like: __PATH_OF__(MyModule) or __PATH_OF__("MyModule.bs").

@zth
Copy link
Collaborator

zth commented Mar 19, 2021

This would be very valuable! 👍

@bobzhang
Copy link
Member

closed as it is duplicate of #4894

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

No branches or pull requests

3 participants