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
feat: loading indicator #523
Conversation
@@ -59,6 +59,7 @@ | |||
"arg": "^5.0.2", | |||
"clean-css": "^5.3.3", | |||
"magic-string": "^0.30.8", | |||
"ora": "^5.4.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ora v6 and above is native ESM, where @swc-node/register
breaks.
Tried @swc-node/register/esm
and @swc-node/register/esm-register
but AFAIU those are target for esm projects, and it also breaks in current project settings.
A bit lazy solution but since we're using a simple indicator, we can stick to v5.4.1 IMO.
const spinner = ora({ | ||
text: 'bundling...\n\n', | ||
spinner: 'dots', | ||
color: 'green', | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LMK how you'd like the output to behave.
Current:
Screen.Recording.2024-04-26.at.3.11.49.PM.mov
try { | ||
spinner.start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use oraPromise, but it outputs a green checkmark where it can't be opted-out by default.
Fantastic!! 😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@devjiwonchoi I found sometimes it swallow the content. I think we need to stop before we log everything in output plugin
|
Revert atm for patch |
Got it!! Will investigate further! |
Closes #512