Skip to content

ES2022 arbitrary module namespace identifiers cause error #139

@wallzero

Description

@wallzero

Exports with a string such as:

export { index as default, index as "module.exports" };

cause error:

Require error message:
        ./node_modules/@stylistic/eslint-plugin/dist/index.js:108
      export { index as default, index as "module.exports" };
                                          ^
      
      SyntaxError: Invalid or unexpected token

Some discussion around adding module.exports named export for require(esm)

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