My Favorite New Features in Bun 1.0
HTML-код
- Опубликовано: 8 сен 2024
- Built-in TypeScript support, an included bundler, extremely fast package installations - that's what the new Bun 1.0 promises us. Is that true?
-- my links
Next.js SaaS: www.splitter.gg/
Discord: / discord
GitHub: github.com/jos...
i love that you can just run typescript directly without transpiling manually, and the transition is seamless
yeah, it feels so natural to just get up & running. I was really confused why the typescript setup is so tedious with nodejs by default
I’m looking forward to testing this again, my first try with a ts file gave me a segfault with 1.0 🫣
This might be the biggest change!
Funny how one of the reasons svelte gave up ts was the need for transpiling.
@@joshtriedcodingthat’s because typescript came 4 years after nodejs was created. So obviously nodejs didn’t design it’s runtime around typescript. 🤦♂️
@@invinciblemodeJust so you know, internally bun still transpiles ts to js.
Just like deno, it is just hidden.
While it would be a big change for node, the actual js runtime would not need to change
Speed aside, it's fkn mind boggling to me how many pain points in the JS ecosystem that bun is addressing at once.
Bun looks pretty good from what I can see. I'll probably wait a little before using it fully in new projects just to let bugs get resolved, but some of the features definitely look promising.
same thing, there's probably going to be quite a few hiccups at the start
The great thing is, you can just use bun a long side your existing environment, and if something goes awry, immediately swap back to node etc.I installed it last week thinking I'd just have a play with it, I haven't touched node/npm since.
My favourite feature is that you can import and require in the same file!
oh right!
This..
Finally the end of cjs/esm hell 🤔
I believe top-level await just works too?
It also contains a BUN-dler?
Ok, genug Wotzwitze, bin vor Lachen fast ver-req-t.
What do you think are the potential benefits of Bun in regard to Next.js development?
really hard to say so early on, but I hope it makes things easier and especially faster there too
For years I wasn't so excited about new tool release. I hope Express and whole Node.js server-side ecosystem will update their vision from 2015 year state of mind.
I have been using Bun for almost a year and it's awesome!
Also, I can't believe people who knew it existed didn't already switch pnpm for this...
How can you run it on windows? and where you host app made with bun?
You can use WSL for that.@@familyguycuts510
@@familyguycuts510 Use a VPS, make your work more smooth and comfortable
What are they using to track their work?
Kan-Bun?
Oooh I like that 👏🏼
I dont believe that you're sorry for you bun-pun tbh 😂
But anyway Bun looks really awesome, I agree!
Can't wait to use bun in production
Man I can't believe that it's awesome
yeah bun is good, it's faster than node js. but ya we can't use it now, maybe we need to await around 7-10 years to use it on production. bcz we know, 4 years before, Deno was introduced but even in 2024, Deno still not a good choice for production grade app
Is it now ready for production?
Just installed Bun on my wsl, its speed is amazing.
If I used this, how would I deploy a full stack app with it? There’s no bun runtime environments, it’s too new. Maybe with a vps?
Thanks 🎉
Please how did you get bun working on windows?
I searched, but I couldn't find an answer: Does Bun also optimize the modules directory using symbolic links like pnpm?
i would use it, if the native Windows build would cover 100% of the features
"gazzlion" 💀💀
Info Ad / get some traffic! Then new video "Why I don't use Bun?"
I have already managed to make all of my projects use Bun instead of other package- and bundle-managers.
How can I run it on my windows?
@@familyguycuts510 WSL is your option.
how do you use it on window? experimental or with wsl?
I will use Bun with HTMX, jsx as template my engine to server
need support on cloud platforms
Was that a bun pun in the beginning?
Yea its Bun O'Clock
Josh please create some video about web scraping again please 😢
now deno vs bun 1.0 please, from developer perspective.
🤔bun run fun 🤓
I clicked like because of the bun lol
Bun has a silly name, but it's aiming to replace a lot of tooling so you gotta take them seriously.
How did you download on windows?
same question I guess we can use it with Windows Subsystem Linux but for me it's not working
So, no more "npm install express" !!!
I thought the runtime only works in widnows right now? All the other features arent supported on windows right now based on the docs.
so you can currently only install bun on either mac, linux or wsl as far as I know - for me wsl worked just fine
I tried bun yesterday and its very fast.
I literally uninstalled yarn yestday
bro i can't install bun in my windows system. but how u running it?
Subsystem
@@moalmostafa6127 ohh! thanks
you can via wsl (windows subsystem for linux) :)
@@joshtriedcoding yeah! thanks bro :)
how did u install it in windows?
Wsl ofc
it's called a windows subsystem for linux, basically allows you to run a linux terminal on windows
Windows version is avaible for experimental
Josh, mate, when are you not coding or reading docs? I bet you don’t even sleep :D
hahaha occasionally
I mean, the number one thing everyone must be thinking is just drop bun into an existing project and get a performance boost. Is this real?
the real question is DOES IT MATTER? TYPESCRIPT DEAD
lol
🤡