Vite plugin for MUD projects, version 2.2.23 (stable). Part of the Lattice MUD framework for building onchain games and applications on Ethereum. It integrates Vite with MUD's build pipeline, providing hot module replacement, optimized builds, and seamless compilation of MUD config, Solidity contracts, and client-side code. Compared to other bundlers, it offers out-of-the-box support for MUD's table generation and worldgen. Updated regularly with patch releases; peer dependency on Vite ^6.0.7.
npm install vite-plugin-mudVerified import paths — ran on the pinned version, not inferred.
Basic setup of vite-plugin-mud in a Vite config file, enabling MUD integration.
Use named import: import { vitePluginMud } from 'vite-plugin-mud'.Use ESM imports (import/export). Ensure your project is configured for ESM.
Upgrade Vite to version 6 or later.
Replace import { mudConfig } with import { defineConfig } from 'vite-plugin-mud'.Replace require() with import statement. Ensure your tsconfig.json has "module": "ESNext" or similar.
Change to import { vitePluginMud } from 'vite-plugin-mud'.Run `npm install vite-plugin-mud` or check the import path.
Update Vite to version 6 or later: `npm install vite@^6.0.7`.
No dependency data recorded yet.