One of my scene classes is getting umconfortably big and I would like to put the functions I use internally in a separate file. I searched online but couldn’t find a GOOD example of how doing it.
I then tried a few different places but I always end with this error:
Uncaught SyntaxError: The requested module ‘./custom.js’ does not provide an export named 'customFunction1’
Also I think I cannot just save the functions in a JS file; otherwise I have to export it first, right? Should I put it into a Phaser 3 Scene class or what???