Skip to content

Word wrap is lost when Yargs is used as ES module #2112

@jwbth

Description

@jwbth

Wrapping breaks words at Nth character when Yargs is used as an ES module. As soon as I switch to CommonJS, word wrap is back to normal. That's basically all.

Yargs v17.3.1, Node v14.17.0, Windows 10.

Found a similar issue #1938, it turned out to be a problem of esbuild. It is not used in my case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions