Inspect the intermediate state of Vite plugins
1,696
stars
376
commits
TypeScript
primary language
Aug 4, 2026
updated
Inspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.
[!NOTE]
v12.x requires Vite v8.0.0 or above with @vitejs/devtools v0.4.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.
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.
MIT License © 2021-PRESENT Anthony Fu
(top 30 of 44)
TypeScript
52.8%
Vue
42.4%
CSS
3.7%
Inspect the intermediate state of Vite plugins
1,696
stars
376
commits
TypeScript
primary language
Aug 4, 2026
updated
Inspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.
[!NOTE]
v12.x requires Vite v8.0.0 or above with @vitejs/devtools v0.4.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.
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.
MIT License © 2021-PRESENT Anthony Fu
(top 30 of 44)
TypeScript
52.8%
Vue
42.4%
CSS
3.7%