Skip to content
Projects

antfu-collective/vite-plugin-inspect has 1,698 GitHub stars and 108 forks. GitHot measured -1 in 7 days. Last checked 2026-11-10 01:13 UTC. Last push 2026-10-09.

How these counts are measured

Inspect the intermediate state of Vite plugins

Measured star growth

in 24h
Update delayed
in 7 days
-1
in 15 days
Update delayed
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

vite-plugin-inspect

NPM version

Inspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.

Screenshot 2024-11-27 at 19 01 26

Install

[!NOTE]

v12.x requires Vite v8.0.0 or above with @vitejs/devtools v0.7.0 or above.

For the previous versions, check the v11 branch.

pnpm add -D vite-plugin-inspect @vitejs/devtools

Add plugin to your vite.config.ts:

// vite.config.ts
import Inspect from 'vite-plugin-inspect'

export default {
  devtools: true,
  plugins: [
    Inspect()
  ],
}

Then run npm run dev and open the DevTools to inspect the modules.

Build Mode

To inspect transformation in build mode, you can set the devtools.build.withApp option to true:

// vite.config.ts
import Inspect from 'vite-plugin-inspect'

export default {
  devtools: {
    build: {
      withApp: true,
    }
  },
  plugins: [
    Inspect({
      build: true
    })
  ],
}

After running vite build, the inspector client will be generated under .vite-inspect, where you can use npx serve .vite-inspect to check the result.

Sponsors

Sponsors

License

MIT License © 2021-PRESENT Anthony Fu

Explore related projects