# Luaubundler

<h2 align="center">Introduction</h2>

<p align="center">Luaubundler is a cli lua bundler written in javascript.</p>

<p align="center"><a href="https://discord.gg/2aNwJ66MVE" class="button primary" data-icon="discord">Join the discord</a> <a href="https://www.npmjs.com/package/luaubundler" class="button secondary" data-icon="npm">View the package</a></p>

{% columns %}
{% column width="50%" %}

### Get started in 5 minutes

Setting up your first bundle should be the easiest part of getting started. With a simple CLI, clear commands, and copy-paste-ready examples, you’ll be bundling Luau files in seconds—not hours.

No complicated configuration, no confusing setup—just point the CLI to your entry file, choose an output folder, and generate your first bundled script instantly.

<a href="https://app.gitbook.com/o/ay8xEco4EPfdrhnj3Ug2/s/jtrwHiq4tiWNhc1cc369/" class="button primary" data-icon="rocket-launch">Get started</a> <a href="https://app.gitbook.com/o/ay8xEco4EPfdrhnj3Ug2/s/1A6YCAsDtKxSa2ZqHYQY/" class="button secondary" data-icon="terminal">API reference</a>
{% endcolumn %}

{% column width="50%" %}

<pre class="language-js" data-title="command" data-overflow="wrap"><code class="lang-js"><strong>luaubundler -i ./Main.luau -o ./ -n output.luau
</strong><strong>
</strong><strong>// Main.luau
</strong>local utils = require('./utils');

utils.hello()
// output.luau
LBN_MODULES["utils/init"] = function ()
	local utils = {};
	function utils.hello ()
		print("Hello!")
	end
	return utils;
end
</code></pre>

{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

<figure><img src="https://gitbookio.github.io/onboarding-template-images/placeholder.png" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

### Learn more about the bundler

Read guides, watch tutorials, and learn more about working with the developer platform and integrating it with your own stack.

<a href="https://app.gitbook.com/o/ay8xEco4EPfdrhnj3Ug2/s/1YE8zrWFvD7ruLANSEfl/" class="button primary" data-icon="book-open">Guides</a> <a href="https://app.gitbook.com/o/ay8xEco4EPfdrhnj3Ug2/s/jtrwHiq4tiWNhc1cc369/" class="button secondary" data-icon="book">Documentation</a>
{% endcolumn %}
{% endcolumns %}

<h2 align="center">Join the community</h2>

<p align="center">Join our Discord community or create your first PR in just a few steps.</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord community</strong></td><td>Join our Discord community to post questions, get help and communicate with the developer.</td><td><a href="https://discord.gg/2aNwJ66MVE" class="button secondary">Join Discord</a></td><td></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Our product is 100% open source and built by developers just like you. Head to our GitHub repository to learn how to submit your first PR.</td><td><a href="https://github.com/swiftdev/luaubundler/compare" class="button secondary">Submit a PR</a></td><td></td></tr></tbody></table>
