News for hackers. Stuff that matters.
Re:Using Bun.js as a Bundler by throwme_123 on Wednesday May 17, 2023 @07:17PM (#35982443)
bun seems great and promising but I'm in the same boat. vite/esbuild with vitest is running perfectly, and already fast enough (and at last not struggling with webpack or rollup overall poor quality anymore...).
Re:Using Bun.js as a Bundler by iainmerrick on Wednesday May 17, 2023 @07:24PM (#35982496)
Yep, vite is really nice too.
Re:Using Bun.js as a Bundler by silverwind on Wednesday May 17, 2023 @07:47PM (#35982656)
bun can run vite prod build at least and seems about 10% faster at it than node according to my testing.
Re:Using Bun.js as a Bundler by eyelidlessness on Thursday May 18, 2023 @02:24AM (#35984652)
My problem with “Vite is good enough” and “Vitest is good enough” as a paired hypothesis is they are literally opposite in their target environments. It’s explicitly unsupported to use Vite to build projects specifically for Node as a target, and it’s explicitly unsupported to test in Vitest in browser environments (though I think that’s being actively addressed, but it’s still going to be a second class solution).
Re:Using Bun.js as a Bundler by throwme_123 on Friday May 19, 2023 @09:38AM (#36001789)
It depends of what you mean by browser environments (integration tests?), but vitest with happy-dom is working great for testing libraries and components.