랭킹으로 돌아가기
antfu-collective/vite-plugin-inspect
TypeScriptInspect the intermediate state of Vite plugins
vitevite-plugin
주요 지표
스타 성장
스타
1.7k
포크
105
주간 성장
—
이슈
10
5001k1.5k
2021년 8월2022년 5월2023년 3월2024년 1월2024년 11월2025년 9월2026년 7월
아티팩트npm
npm install vite-plugin-inspectREADME
vite-plugin-inspect
Inspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.
Install
[!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.
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
License
MIT License © 2021-PRESENT Anthony Fu
관련 저장소