Skip to content

Change the way imports are done to support metadata more cleanly #163

Open
@JonathanAldrich

Description

@JonathanAldrich

Right now ImportDeclaration.genBinding extends the context with a shortcut replacing the importName with the long, internalName for the module. But we want the importName to not be a synonym, because we only want its type to have metadata if we used "import metadata" at the source level. So should really replace this with a binding that doesn't replace the importName with the internalName, and a corresponding "let" declaration later.

This is a bug because it means "import metadata" is effectively ignored (metadata is always imported).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions