Looking to improve the organization of my code with three.js and webpack rather than having everything in a single file (like camera, meshes, lights, postprocessing, etc).
I had the idea of using "manager modules" such as a LightManager class or a PostProcessingManager class. But then, these modules would need to be singletons since I only require one instance, correct? Singleton is often considered a "bad" pattern, however (or better put, "it's not necessarily bad, but there may be a more suitable solution").
So now I'm curious about what other options I have. How do you all go about organizing your code?