Vite · Plugins

VITE0015Name Vite plugins

Checks that Vite plugin code includes the name needed for predictable behavior.

Why it happens

Vite configuration runs in both dev and build pipelines. Narrow, explicit settings reduce surprises across SSR, workers, and local file access.

Fix

Add name where Vite expects it, close to the code that depends on it.

Example

Name Vite plugins

Before

export default function plugin() {
  return {
    transform(code) { return code },
  }
}

After

export default function plugin() {
  return {
    name: 'app-plugin',
    transform(code) { return code },
  }
}

Verify the fix

Run only this rule after editing so the report stays focused on the diagnostic you are closing:

pnpm vite-doctor . --framework vite --extends auto,vite/strict --rules vite/plugin/require-name
Copyright © 2026