Skip to content

Breaks some end of file exports #30

@lencioni

Description

@lencioni

Thanks for your work on this plugin! I think I ran into an issue with this plugin when encountering code like:

const foo = 1;
const BAR = 2;

export { foo as default, BAR };

I would expect there to be a default and a BAR named export. However, it seems as though there is only a default export in this case.

Here's a failing test case I wrote:

{
  name: 'end of module export',
  code: 'const foo = 1;const BAR = 2;export { foo as default, BAR }',
  expected: {
    module: {
      default: 1,
      BAR: 2
    },
    exports: {
      default: 1,
      BAR: 2
    }
  }
},

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