Skip to content

Import syntax for macros #45

Description

@daaku

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
})()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlanguageLanguage features.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions