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.