module-bundler.lua | ||
README.md |
Lua file embedder
Combine multiple lua files into one amalgamation. This works by appending a custom module loader
to package.loaders
.
Usage:
require("module-bundler")("program.lua", "main.lua", {
"utils.lua",
"ui.lua",
"math.lua",
})
This will create a file called program.lua
where utils.lua
, ui.lua
and math.lua
have been
embedded into main.lua
.