It seems like there are some old examples (2014 and earlier) of require.js being used with phonegap/cordova, but these examples don't currently work. I've tried a number of approaches and I haven't had any luck.
Does anybody have any currently functioning examples of using require.js successfully?
Thank you for any advice/examples!
I'd still like to hear other people's solutions, but I did find this thread which does seem to allow require to work:
The trick is that you want require.js to load last after the socket-io library which the phonegap tool injects last in the body. The posted thread includes a trick to get require.js in last, but I don't think this is the ideal solution.
Any ideas still appreciated!