Can someone please help me with the scripts loading order on the build? For me it’s not making any sense! (I’m using web-mobile build to test it) On preview it works fine, this problem are only on builds
Before the 2.4, the scripts could be in any place of the project, but now it seems that the folder makes a lot of difference in the loading order!
What I noticed so far
- Plugins should be loaded first, but they will not if they are in resources folder, they will load as a normal script
- The normal scripts will run the require as soon as they are loaded, so it will crash if it requires another script that was not loaded yet