> For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/llms-full.txt.

# `vite/virtual-module-dir`

- Category: **correctness**
- Default severity: **warning**

## Issue

A `virtualModuleDir` with slashes is not a single virtual folder. Nested names collide with virtual module IDs and break Vite federation bootstrap.

## How to fix it

Use one simple directory name without slashes, for example `__mf__`.

Suppress or retarget with `rules["vite/virtual-module-dir"]` set to `"off"` or a severity, see [Suppressions and allowlists](https://mfdoctor.kevinbeier.com/suppressions.md).

## Sources

- [Official source](https://github.com/module-federation/vite)
