Skip to content

Dynamic import specifier position includes attributes when using a non-string specifier #196

Description

@nicolo-ribaudo
parse(`import("foo", {})`)[0][0]
parse(`import(foo, {})`)[0][0]
  • The first one gives a s...e range covering "foo"
  • The second one gives a s...e range covering foo, {}

I would expect s...e to either include import attributes in both cases, or to always exclude them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions