Solder: A simple, fast bundler for Roblox models

Solder: A simple, fast bundler for Roblox models

Pesde | GitHub

Solder is a Luau bundler inspired by wax for .rbxm and .rbxmx model files. It packages scripts and folders into a single Luau module.

What do you think of this resource?
  • It’s great!
  • It’s okay.
  • It could be better.
0 voters

:sparkles: Features

  • Preserves model folder structure in the bundle
  • Supports line tracking so error stacks stay meaningful when possible
  • Allows overriding the root instance inside the model to start bundling from
  • Validates only supported types: Folder, Script, LocalScript, and ModuleScript
  • Runs via CLI or programmatically through its Bundler API
  • Multiple require styles supported:
    • Require by instance: require(script:FindFirstChild("x"))
    • Require by string:
      • require("./AbstractSyntaxTree/Parser")
      • require("@self/RbxCryptography")

:laptop: Installation

Use pesde to install it onto your project:

pesde install 1suite/solder

Or run it directly if running outside of a pesde project:

pesde x 1suite/solder

Even better, include it into your build pipeline via its public API:

local Bundler = require("@pkg/solder").Bundler

:rocket: Basic usage

:technologist: Command Line (CLI)

If in a pesde project:

solder --input MyModel.rbxm --output Bundled.luau

Otherwise:

pesde x 1suite/solder --input MyModel.rbxm --output Bundled.luau

Add options:

solder \
  --input MyModel.rbxm \
  --output Bundled.luau \
  --track-lines \
  --env-name "ProjectName 17.4.1-alpha.1+be32fb5" \
  --override-root Server.MainFolder

:hammer_and_wrench: Runtime usage (SDK)

local SDK = require("@pkg/solder").SDK

Exports:

  • require: The real require global exposed by Luau.
  • environmentName: A string representing build’s environment name (by default, SolderRuntime).
  • script: The real script global exposed by Luau.
  • lineTrackingEnabled: Whether line tracking is enabled for this script for improving debugging.
  • getRealLine(line: number): number: From a line returned by reflection APIs, computes the real line number.

:receipt: TL;DR

Solder is useful if you want to embed models since it packs everything into a single Luau script.

It also improves debugging quality with line tracking and custom environment names. Distribution stays clean because only valid types are bundled. For automation, the CLI supports scripting and quiet mode for CI pipelines.

For more information, please check Solder’s README!

5 Likes