lua-users home
lua-l archive

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


> Is there some guide(or best practices) on how to organize the compiled
> lua files in a project (to assure the 'require', 'dofile' still works
> after the files are compiled) ?

A simple way is to compile all files into a single precompiled one. If
after loading those files you don't call 'require' or 'dofile' again,
then you can provide stubs for them in the first file given to luac.
--lhf