Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Does not work with bun.sh #14

Open
VityaSchel opened this issue Jun 21, 2024 · 1 comment
Open

Does not work with bun.sh #14

VityaSchel opened this issue Jun 21, 2024 · 1 comment

Comments

@VityaSchel
Copy link

I have setup a minimal example with bun.sh:

const DraftLog = require('draftlog')
DraftLog(console)
var update = console.draft('Hi, my name is')
console.log('Something else')
new Promise(resolve => setTimeout(resolve, 1000)).then(() => {
  update('Hi, my name is Ivan!')
})

tried node index.cjs — it works
tried bun index.cjs — it simply outputs Hi, my name is Ivan! on another line:
image

Bun version: 1.1.8
OS: macos 14.5
terminal: iterm

@VityaSchel
Copy link
Author

I ended up switching to https://github.com/sindresorhus/log-update for now

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant