Fork me on GitHub
#clojure-europe
<
2021-08-30
>
slipset07:08:16

Morning. Ah the state of JS. Our frontend is written in JS. The build thing is yarn. So locally we use yarn to serve the frontend. The node process that does this (which admittedly also watches the files for rebuilds) takes 40% of my CPU. Basically doing nothing.

2
hkjels07:08:54

I’ve had the “pleasure” of changing the build-system of a somewhat large typescript project lately. Dealing with js/ts has become a nightmare tbh. I ended on using vitejs and pnpm. Had the project been all standard it would have been OK I guess, but with a little homegrown stuff there’s just a lot of feet and shotguns going around.

hkjels07:08:22

But, to the point. Vitejs is quite performant

slipset07:08:03

Might just have fixed it 🙂

slipset07:08:34

Don’t know if it’s still working for the frontend-devs, but at least now node is chugging along at 10% cpu.

👍 2
slipset07:08:03

if I’m correct, it was caused by missing globbing patterns in the ignore thing of the watch options.

hkjels08:08:49

sounds reasonable. Should probably make sure node_modules is in that list as well

slipset09:08:07

it is…

👍 2
reefersleep08:08:53

Good morning 🙂

pez09:08:32

Morning!