Hello everyone!
I’m leaving a little message here because I’ve been thinking about it for a while, there’s an issue with the front build process, as we’re using Preact 10 with the old version of preact-cli (2.0), whereas the version currently in production is version 3.0.
You must have noticed while developing, the front keeps crashing and it’s quite unpleasant ^^
I’ve tried several times without success to update preact-cli, but it keeps failing ![]()
In my opinion, we’ll need to make some changes in the front app for it to work ^^
I’m particularly thinking about unistore, the state management library we use. It has been updated since I started the Gladys 4 project, and they have stopped using decorators to inject the store into components (GitHub - developit/unistore: 🌶 350b / 650b state container with component actions for Preact & React · GitHub). The decorator feature (the @connect() in the code), was experimental and I’m not sure it’s still supported…
Anyway, if anyone has ideas for updating preact-cli and wants to help, I’m up for doing it together, the config drives you crazy when you’re alone! ![]()
As for the dev/build process, I’m also quite interested in what’s being done with vite in particular (GitHub - vitejs/vite: Next generation frontend tooling. It's fast! · GitHub), which is based on the excellent esbuild written in go. Apparently the build speeds are just impressive, we’re talking about 40 seconds with webpack vs 200ms with esbuild ^^ I tested it with the Gladys front end, and once again it failed on unistore and the decorators.