lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Is there a way to get LuaC to take all of the files required or used by
> a target and compile them into one single file?

It does that already. luac a.lua b.lua c.lua ... will generate a single
loadable file that is equivalent to loading and executing a.lua, b.lua,
c.lua etc. in that order. If you files use "require" you may start that
list with a stub for require that does nothing or whatever is suitable
for your app.
--lhf