![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | a year ago | - | |
![]() | node_modules/ | a year ago | - | |
![]() | LICENSE | a year ago | 1.1K | |
![]() | README.md | a year ago | 1.5K | 595aea1 more query options + view options [كارل مبارك] |
![]() | package.json | a year ago | 3.8K | afd0ccc remove unused [كارل مبارك] |
![]() | splitpanes.d.ts | a year ago | 510 |
Inspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.
npm i -D vite-plugin-inspect
Since
vite-plugin-inspect@v0.7.0
, Vite v3.1 or above is required.
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