> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meow.style/llms.txt
> Use this file to discover all available pages before exploring further.

# Bundling

> Bundle your module graph into single-file ESM with Rolldown over meow's own resolver.

`meow bundle` rolls a module graph into output chunks using **Rolldown** — the
Rust bundler built on the same Oxc generation meow uses everywhere — driven through
meow's own resolver.

```bash theme={null}
meow bundle main.ts                 # bundle into ./dist
meow bundle src/index.ts --out build
meow bundle a.ts b.ts -o dist       # multiple entries
```

| Argument      | Meaning                                 |
| ------------- | --------------------------------------- |
| `<entries…>`  | One or more entry modules (required).   |
| `--out`, `-o` | Output directory. Defaults to `./dist`. |

```text theme={null}
🐾 meow bundle: Emitted 1 chunk to /path/to/project/dist
```

## Resolution is shared

This is the important part: the bundler does **not** use a separate Node resolution
algorithm. Rolldown resolves through meow's resolver, which means:

* It sees the exact same content-addressed package graph the runtime sees.
* Phantom dependencies — packages you import but never declared — are **locked
  out**, because the resolver only knows what's in your graph.
* TypeScript and the [`.js`→`.ts` fallback](/runtime/typescript#importing-typescript-files)
  behave identically to runtime resolution.

<Note>
  Because Rolldown and meow share one Oxc generation, there's never a second,
  divergent parser in the build. The code you run and the code you bundle are
  understood by the same engine.
</Note>

## When to use it

`meow bundle` produces single-file ESM artifacts — ideal for shipping a library, a
serverless function, or a CLI as one file. For application dev servers (HMR, route
splitting), use your framework's dev server via `meow dev`; `meow bundle` is the
low-level "collapse this graph into a file" primitive.

<Card title="Test next" icon="vial" href="/toolchain/test">
  The isolate-backed, deterministic test runner.
</Card>
