You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes it's quite a nightmare :(. Esbuild is supposed to be fast. The problem is that initially it must discover all of the imports and build them. Once it's cached it is relatively fast.
I suspect almost all of this is the massive, complicated libs we include, like THREE.js, and the complex dynamic import dependency chain that causes it to have to restart the build once it finds new includes.
Note that the latter is somewhat fundamental to the dynamic import loading nature of webaverse/totum, so I'm not sure if/how we could optimize dynamic imports easily. However, I am convinced with a day or two of thought this could be made blazing fast, possibly with some hacks. I think it's important we get this dev experience right.
I believe vite.js has ignore path options we can use. Failing that, we have full control of the server and we can short-circuit any import that causes these issues.
Hangs on this for a long time and does not reload page.
The text was updated successfully, but these errors were encountered: