|
The proper way to do relative requires is:
thismod/init.lua
-----
local modname = ...
local submod = require(modname .. ".submod")
return {submod=submod}
-----
thismod/submod.lua
-----
return {
helloworld = function() print("Hello World!") end
}
-----