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

Import syntax for macros #45

Open
daaku opened this issue Nov 25, 2022 · 0 comments
Open

Import syntax for macros #45

daaku opened this issue Nov 25, 2022 · 0 comments
Labels
enhancement New feature or request language Language features.

Comments

@daaku
Copy link
Owner

daaku commented Nov 25, 2022

In order for macros to reference symbols from other modules, support the same or similar syntax as (import) but transpile it to something like:

export const other = await (async () => {
  const { add } = await import('./one.mjs')
  return add
})()
@daaku daaku added enhancement New feature or request language Language features. labels Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language Language features.
Projects
None yet
Development

No branches or pull requests

1 participant