{"id":13417412,"url":"https://github.com/antfu-collective/vite-plugin-inspect","last_synced_at":"2026-01-04T11:09:10.330Z","repository":{"id":37427163,"uuid":"396613541","full_name":"antfu-collective/vite-plugin-inspect","owner":"antfu-collective","description":"Inspect the intermediate state of Vite plugins","archived":false,"fork":false,"pushed_at":"2025-04-18T06:19:18.000Z","size":2216,"stargazers_count":1463,"open_issues_count":9,"forks_count":85,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-12T08:05:54.827Z","etag":null,"topics":["vite","vite-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antfu-collective.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["antfu"]}},"created_at":"2021-08-16T04:17:25.000Z","updated_at":"2025-05-10T21:34:28.000Z","dependencies_parsed_at":"2024-01-07T18:05:17.981Z","dependency_job_id":"550718b5-64fe-4605-af54-7ce505691eb7","html_url":"https://github.com/antfu-collective/vite-plugin-inspect","commit_stats":{"total_commits":286,"total_committers":35,"mean_commits":8.17142857142857,"dds":"0.29370629370629375","last_synced_commit":"a9176a8f2ddb4db89236754edbdb4bf26b0761b4"},"previous_names":["antfu-collective/vite-plugin-inspect"],"tags_count":106,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-plugin-inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-plugin-inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-plugin-inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-plugin-inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antfu-collective","download_url":"https://codeload.github.com/antfu-collective/vite-plugin-inspect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253807373,"owners_count":21967350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vite","vite-plugin"],"created_at":"2024-07-30T22:00:36.729Z","updated_at":"2026-01-04T11:09:10.238Z","avatar_url":"https://github.com/antfu-collective.png","language":"Vue","funding_links":["https://github.com/sponsors/antfu"],"categories":["Plugins","TypeScript","Vue"],"sub_categories":["Framework-agnostic Plugins"],"readme":"# vite-plugin-inspect\n\n[![NPM version](https://img.shields.io/npm/v/vite-plugin-inspect?color=a1b858\u0026label=)](https://www.npmjs.com/package/vite-plugin-inspect)\n\nInspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.\n\n\u003cimg width=\"1488\" alt=\"Screenshot 2024-11-27 at 19 01 26\" src=\"https://github.com/user-attachments/assets/ab6b86ac-d7ce-4424-a23f-02f265f547ea\"\u003e\n\n## Install\n\n```bash\nnpm i -D vite-plugin-inspect\n```\n\n\u003e [!NOTE]\n\u003e\n\u003e v10.x requires **Vite v6.0.1** or above.\n\u003e\n\u003e 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.\n\nAdd plugin to your `vite.config.ts`:\n\n```ts\n// vite.config.ts\nimport Inspect from 'vite-plugin-inspect'\n\nexport default {\n  plugins: [\n    Inspect()\n  ],\n}\n```\n\nThen run `npm run dev` and visit [localhost:5173/__inspect/](http://localhost:5173/__inspect/) to inspect the modules.\n\n## Build Mode\n\nTo inspect transformation in build mode, you can pass the `build: true` option:\n\n```ts\n// vite.config.ts\nimport Inspect from 'vite-plugin-inspect'\n\nexport default {\n  plugins: [\n    Inspect({\n      build: true,\n      outputDir: '.vite-inspect'\n    })\n  ],\n}\n```\n\nAfter running `vite build`, the inspector client will be generated under `.vite-inspect`, where you can use `npx serve .vite-inspect` to check the result.\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\n[MIT](./LICENSE) License \u0026copy; 2021-PRESENT [Anthony Fu](https://github.com/antfu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu-collective%2Fvite-plugin-inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantfu-collective%2Fvite-plugin-inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu-collective%2Fvite-plugin-inspect/lists"}