Open fraxken opened 3 years ago
A few of the key dependencies are not available for dual cjs and esm builds. The first esm build of cliui stayed "pure" and substituted in some simple routines rather than use the older cjs flavours. I think this is probably the cause of the difference you see.
There are some open issues and PR about the problem and possible solutions: #89 #138 #139 #140
Hello 👋
The package
cliui
remove "some" colors when working with ESM. Everything is fine with CJS. I found the problem on a CLI project I just migrated and I couldn't understand why my colors were not working anymore.How to reproduce:
The index.js file
Output with ESM:
The title with cliui doesn't work. If you switch the project to CJS it will work as expected.
Best Regards, Thomas