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, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/rules/vite/alias-share-bypass.md.

vite/alias-share-bypass

  • Category: correctness
  • Default severity: warning

Issue

resolve.alias can rewrite imports around the share scope and duplicate singleton packages.

How to fix it

Remove the overlapping alias, drop the package from shared, or allowlist intentional bypasses.

Suppress or retarget with rules["vite/alias-share-bypass"] set to "off" or a severity — see Suppressions and allowlists.

Sources