fsprojects / fantomas-tools

Collection of tools used when developing for Fantomas
https://fsprojects.github.io/fantomas-tools/
MIT License
34 stars 8 forks source link

Use bun instead of node #599

Closed nojaf closed 12 months ago

nojaf commented 12 months ago

Jumping on the hype train but I was surprised how easy this was to swap out. Everything is definitely faster, although this won't overly change the local experience much. There is a part of me just happy to ditch node.

nojaf commented 12 months ago

On main:

STAGE #0 yarn install finished. 6146ms.
bundle frontend/step-2> ✓ built in 5.60s
bundle frontend/step-2> Done in 23.28s
STAGE #6 bundle frontend finished. 23710ms.

This PR:

STAGE #0 bun install finished. 567ms
bundle frontend/step-2> ✓ built in 5.00s
bundle frontend/step-2> finished. 24056ms.
STAGE #6 bundle frontend finished. 24383ms.
nojaf commented 12 months ago

Also from the bun docs: image

https://bun.sh/guides/ecosystem/vite

Things will still improve over time.

nojaf commented 7 months ago

@josh-degraw I'm not sure where we talked about Bun not working on Windows but with v1.0.26-canary.53 (862d35d8) I was able to run things in Windows.

# WARNING: No stability is guaranteed on the experimental Windows builds
powershell -c "irm bun.sh/install.ps1|iex"
josh-degraw commented 6 months ago

If it worked for you I say go for it 🚀