So what exactly is the deal with _G? And why is it different for these two libraries? From what I can tell on Github they both have the same structure…
Interesting. _G is the table of global functions and function tables (modules). You find the standard Lua functions such as require, math.max, tostring, io.open etc
Calling _G.require() and require() should be the same.
Ah! The problem in your case is that the Defold build pipeline doesn’t recognise _G.require() and will therefore not include the required file. If it is required from somewhere else using require() it will work though.