16 lines
379 B
Markdown
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`.
|