-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cliui remove kleur colors (ESM project) #113
Comments
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 |
@shadowspawn Yes, we forked to drop CJS and fix the few issues we had: cliui We plan to maintain that fork short-term (but probably not long term). |
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
The text was updated successfully, but these errors were encountered: