1
0
cc-module-bundler/README.md
2023-05-11 22:01:44 +03:00

16 lines
379 B
Markdown

# Lua file embedder
Combine multiple lua files into one amalgamation. This works by appending a custom module loader
to `package.loaders`.
Usage:
```lua
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`.