modules that are not "required" will be excluded from the build - right?

I had always assumed that modules that are never “required” are excluded from the build even if they are in the same folder as main.lua.  Is this correct?  Can I let my unused modules in my library subfolder lie low or do I need to actively prune them?

From my experience all .lua files in the project folder get compiled. As a test, put an error in an unused one and watch it error out. I can only speculate that if we are compiling them, we are including them.

Rob

Ah, a smart test idea, thanks Rob!

Given how dynamic Lua is, it would be pretty bad if any file would be skipped in a build. Imagine the simplest problematic case where the path to a required module is not a constant but a runtime dynamic value.

@Michael Flad, good point.  I will prune away my excess modules along with excess textures and sounds.