bun: improve types so it runs with bun

I'm experimenting with bun. Seems like a few types are slightly more strict, so this makes the project actually able to be run with bun.

Here's how:

  1. Install bun: curl -fsSL https://bun.sh/install | bash
  2. rm -rf node_modules, or else there will be problems
  3. bun i to install deps
  4. bun webpack-dev-server

It works!

As far as performance, I don't see any improvements when running Webpack with bun. It still takes an inordinately long time to build. However, the point of using bun is that it's also a BUNdler, so to really get the benefits we'd have to rip out webpack and replace it with bun's esbuildish way of doing things.

bun i is noticably faster than yarn at least, and it could be worth jumping ship for that reason alone.

Merge request reports

Loading