3 ms·
This is timely to me because I am in the middle of modernizing a project that was ejected from CRA years ago and now won’t build in Node 18. I’ve worked on a f
by PaulHoule 2y ago
This is timely to me because I am in the middle of modernizing a project that was ejected from CRA years ago and now won’t build in Node 18.
I’ve worked on a few big React projects but haven’t really looked much into how the build works, I found out upgrading one thing forced me to upgrade other things and I wound up making a lot of changes by hand to the build scripts and figured I’d probably screw something up. Dependencies changing from CommonJS to ESM was probably the most common problem that can frequently solved by version bumps (at risks of adopting changes you don’t want)
At some point I decided to try the alternate path of switching to Vite for a build system since I’ve had good luck working with it for some VR side projects.
It’s funny how you can code on front-end Javascript and not need to learn about CommonJS until something like this hits.