luabundle 1.1.0

Bundler for Luau scripts
luabundle-1.1.0 is not a library.

Lua Bundler

A customizable Lua Bundler made in Rust

Setup

  1. Download luabundle from Cargo.
  2. Run luabundle in the command prompt to create a new project in the current directory.
  3. Run luabundle again to bundle your code to the output file.

Options

  • Require Function (default loadmodule)
  • Entry File (default main.lua)
  • Output File (default LuaBundler/bundled.lua)
  • Minify (default false)
  • Beautify (default true)

Usage

Create a file called main.lua (or what you set as the Entry File) in the root folder.
Files that are being required should be treated like a module script.
Use the loadmodule function and pass in a path to a file (paths are relative to the current file).
Use @ before the path to access the root, e.g., loadmodule("@fileAtRootFolder.lua").