
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
vite-plugin-inspect
Advanced tools
Inspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.
npm i -D vite-plugin-inspect
[!NOTE]
v10.x requires Vite v6.0.1 or above.
For Vite v2 to v5, use v0.8.x of
vite-plugin-inspect. If you want to use it with both Vite 6 and below, you can still use v0.8.x, it's forwards compatible.
Add plugin to your vite.config.ts:
// vite.config.ts
import Inspect from 'vite-plugin-inspect'
export default {
plugins: [
Inspect()
],
}
Then run npm run dev and visit localhost:5173/__inspect/ to inspect the modules.
To inspect transformation in build mode, you can pass the build: true option:
// vite.config.ts
import Inspect from 'vite-plugin-inspect'
export default {
plugins: [
Inspect({
build: true,
outputDir: '.vite-inspect'
})
],
}
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
rollup-plugin-visualizer is a plugin for Rollup that visualizes the size of the output files and their dependencies. It provides a treemap visualization of the bundle, which can help you understand the size and structure of your bundle. Compared to vite-plugin-inspect, rollup-plugin-visualizer focuses more on the size and structure of the final bundle rather than the internal state of the build process.
webpack-bundle-analyzer is a plugin for Webpack that provides a visual representation of the size and composition of your Webpack bundles. It generates an interactive treemap visualization of the contents of your bundles, helping you identify large modules and optimize your build. While vite-plugin-inspect focuses on the internal state of Vite, webpack-bundle-analyzer is more concerned with the final output of the build process.
FAQs
Inspect the intermediate state of Vite plugins
The npm package vite-plugin-inspect receives a total of 2,219,362 weekly downloads. As such, vite-plugin-inspect popularity was classified as popular.
We found that vite-plugin-inspect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.