Skip to content

v0.9.1 "export name annotations" generates js output with syntax error #960

Description

@shigma

Input

export default xxx
export const name = xxx
export function apply() {}

Output

// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  apply,
  default, // syntax error here
  name
});

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