before luneweb 0.3 this fork was being used for bundling since you can fake require paths using the GlobalsContext struct, but maintaining a Fork is just not very easy to do, so it's decided that LuneWeb is gonna do it's own implementation of require once there is need for bundling again.
$ Build
the lune build
command can bundle multiple scripts
lune build path/to/script1.luau path/to/script2.luau path/to/scrpt3.luau
the bundler doesn't bundle .luaurc
yet so it's not gonna work with custom aliases.
lune build path/to/*.luau
$ GlobalsContext
this struct allows you to customize the global variables that are inserted by the lune-std crate, for now these customizations are limited to adding your own standard libraries and modulescripts to the require function
A standalone Luau runtime.
Write and run programs, similar to runtimes for other languages such as Node, Deno, Bun, or Luvit for vanilla Lua.
Lune provides fully asynchronous APIs wherever possible, and is built in Rust 🦀 for speed, safety and correctness.
- 🌙 Strictly minimal but powerful interface that is easy to read and remember, just like Luau itself
- 🧰 Fully featured APIs for the filesystem, networking, stdio, all included in the small (~5mb zipped) executable
- 📚 World-class documentation, on the web or directly in your editor, no network connection necessary
- 🏡 Familiar runtime environment for Roblox developers, with an included 1-to-1 task scheduler port
- ✏️ Optional built-in library for manipulating Roblox place & model files, and their instances
- Making programs short and terse - proper autocomplete / intellisense make using Lune just as quick, and readability is important
- Running full Roblox games outside of Roblox - there is some compatibility, but Lune is meant for different purposes
Head over to the Installation page to get started using Lune!