MCPcopy Create free account
hub / github.com/antfu-collective/vite-plugin-inspect

github.com/antfu-collective/vite-plugin-inspect

Chat with this repo
repository ↗ · DeepWiki ↗ · release v12.1.0 ↗ · + Follow · compare 2 versions
116 symbols 281 edges 52 files 0 documented · 0% ● updated 11d agov12.1.0 · 2026-10-09★ 1,6988 open issues

Browse by type

⨍ Functions 85◇ Types & classes 31
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 62
Interface 25
Method 23
Class 6

Languages

TypeScript100%

Modules by API surface

src/node/context.ts29 symbols
src/types.ts13 symbols
src/node/index.ts13 symbols
src/node/build.ts8 symbols
test/build.test.ts5 symbols
src/client/logic/utils.ts5 symbols
src/node/hijack.ts4 symbols
src/client/stores/options.ts4 symbols
src/node/utils.ts3 symbols
src/client/vite.config.ts3 symbols
src/client/typed-router.d.ts3 symbols
src/client/stores/payload.ts3 symbols

Dependencies from manifests, versioned

@antfu/eslint-configcatalog:dev · 1×
@antfu/nicatalog:dev · 1×
@antfu/skillscatalog:dev · 1×
@antfu/utilscatalog:dev · 1×
@iconify/jsoncatalog:dev · 1×
@nuxt/kitcatalog:prod · 1×
@playwright/testcatalog:dev · 1×
@types/codemirrorcatalog:dev · 1×
@types/nodecatalog:dev · 1×
@unocss/eslint-configcatalog:dev · 1×
@unocss/eslint-plugincatalog:dev · 1×
@unocss/resetcatalog:dev · 1×

For agents

$ claude mcp add vite-plugin-inspect \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page