Can I compile all my files to one and then execute from C. In my lua files I am using require and dofile functions. When I try to use luac for compiling and then I want to execute the compiled file then It will not be able to find my modules which are built in the compiled file. I thought the including lua files via require and dofile function luac compiler proccess like for example javascript compiler do. In simply terms Javascript compilers adding the importing files to one.
And is it good practise when you do a release for app have the lua scripts in one file? Because I have a few directories with lua scripts and when I do a release I must have all lua files with binary in readable form.