Loom ships as two packages. Most projects need only one.
| How you want to run it | Install |
|---|---|
The loom preview / loom build CLI, no Vite config of your own | loom-dev |
loomPreview() in your own vite.config.ts | @loom-dev/preview, react@18, vite |
| Both | All of the above |
Install the CLI
Start here if you’re unsure. It is one dependency and needs no config file:
pnpm add -D loom-devnpm install -D loom-devyarn add -D loom-devbun add -D loom-devloom-dev brings its own @loom-dev/preview, React and Vite.
Install the plugin
To add the plugin to a Vite project you already have, install it with its peers:
pnpm add -D @loom-dev/preview react@^18.3.1 vitenpm install -D @loom-dev/preview react@^18.3.1 viteyarn add -D @loom-dev/preview react@^18.3.1 vitebun add -D @loom-dev/preview react@^18.3.1 viteThe peers are react ^18.3.1 and vite ^6.0.0 || ^7.0.0. Then follow
Vite integration.
Loom’s React adapter reads React 18 internals, so React 19 fails as soon as the preview loads. Pin
react@^18.3.1 and @types/react@^18.3.12.
Verify
Run this in a roblox-ts project that has a client entry:
pnpm exec loom preview .Open the printed URL, by default on port 5173. A dark page with your UI on it means everything is working. A blank page usually means the entry doesn’t mount itself; see Your first preview.
What you don’t install
- No roblox-ts build step. esbuild transpiles your TSX directly.
- No Rust toolchain. The layout engine ships prebuilt as a
.wasmfile inside@loom-dev/layout.
Both packages are ESM-only and MIT-licensed. Keep every @loom-dev/* package on the same version:
they release together, and mixed versions are not supported.
Next step
Point loom at a project and get a preview on screen: Your first preview.