Skip to content

[Bug] Unclear default export #111

@Wayofthesin

Description

@Wayofthesin

Given the file:

export default class MyClass {
    // MyClass implementation
}

The parsed File object has following declarations:

[
    DefaultDeclaration: {
        isExported: true,
        exportedDeclaration: self
    },
    ClassDeclaration (MyClass): {
        isExported: false
    }
]

Expected:

  • ClassDeclaration.isExported to be true
  • DefaultDeclaration.exportedDeclaration to be MyClass declaration

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