Skip to content

Let's give bun a try#71

Merged
bhousel merged 1 commit intomainfrom
bun
Oct 18, 2025
Merged

Let's give bun a try#71
bhousel merged 1 commit intomainfrom
bun

Conversation

@bhousel
Copy link
Copy Markdown
Contributor

@bhousel bhousel commented Oct 18, 2025

Bun is a fast all-in-one JavaScript and TypeScript runtime and toolkit. docs

With the newly released Bun v1.3, I thought it would be good to try it out, and I like it. Here's why:

Not only is it significantly faster than other tools, it simplifies things a lot. It basically replaces:

  • the runtime (node), it is mostly a drop-in replacement
  • package manager (npm/yarn), and tools to check for updates like npm check or taze
    • and it has an option to avoid installing anything too new - mitigating JavaScript supply-chain attacks.
  • bundler (esbuild/rollup/vite/parcel)
  • test runner (jest/node:test/vitest)
  • supports TypeScript natively, so we don't need tools like ts-node or a slow tsc transpilation step.
  • supports monorepos (not used here but I do need this elsewhere)
  • also has an enormous amount of other builtins, so a good opportunity to drop dependencies like
    • c8 for code coverage
    • shx for cross-platform shell commands
    • npm-run-all (this one is not really maintained anymore, I switched to npm-run-all2)

This commit also introduces some TypeScript. I'll probably migrate to TypeScript when I have some free time.

Bun has a builtin http server, so we can use it for local testing.
Just bun start or bun run start to test location-conflation on localhost.

Bun is a new JavaScript/TypeScript runtime with everything built in.
It seems like it could be a lot easier than using a bunch of tools.
It also is a bit faster and has some improvements to security.
This replaces node, c8, esbuild, taze, maybe some other things.

Bun has a builtin http server, so we can use it for local testing.
Just `bun start` or `bun run start` to test location-conflation on localhost.
@bhousel bhousel merged commit 7224b66 into main Oct 18, 2025
1 check passed
@bhousel bhousel deleted the bun branch October 18, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant