DEV Community

Discussion on: Bun hype. How we learned nothing from Yarn

Collapse
 
jaggedsoft profile image
jagged software

I haven't tried Bun yet, but I'm excited for it not for the reasons you're mentioning, but for:
— it supports import and commonjs interchangeably
— it renders react to javascript natively and supports typescript natively
I love the concept of being able to do stuff like this without requiring build tools.

Anyway nice post and thanks for starting an interesting discussion.

Collapse
 
thejaredwilcurt profile image
The Jared Wilcurt

Dealing with MJS/CJS is a pain. I'm more upset that Bun made that possible and Node hasn't. If there is one feature I would love to see Node.js steal from Bun it would be allowing intermixing require and import. But until Node does, it's just one more non-portable coding practice that would bite you if you wanted to move away from Bun later, so as convenient as it is, I would be far too afraid to actually use it.

JSX and TypeScript are Meta-Languages, and there is a large section on that in the post. For quick convenience it is nice, but for a real long term project there are many downsides to using Bun instead of a pinned, versioned, dependency.

Collapse
 
jaggedsoft profile image
jagged software

All good points. I wish I could code like you can write.

Some comments have been hidden by the post's author - find out more