Overview
The Vite plugin vite-plugin-inspect is a powerful tool designed for developers working with Vite, offering rich debugging capabilities for Vite plugins. This plugin facilitates the inspection of the intermediate state of plugins, making it invaluable for those who are authoring or troubleshooting plugin implementations. Whether you are running a development server or working in build mode, the insights gained from this plugin can enhance your development workflow.
Features
- Compatibility: Version 10.x requires Vite v6.0.1 or above, while versions 2 to 5 can use v0.8.x, ensuring adaptability for different Vite versions.
- Easy Integration: Simply add the plugin to your
vite.config.tsfile, making setup straightforward and efficient. - Real-Time Inspection: After running
npm run dev, developers can easily visitlocalhost:5173/__inspect/to access the inspection interface. - Build Mode Support: The plugin supports transformation inspection in build mode by passing the
build: trueoption, allowing for thorough examination in production builds. - Generated Reports: Post build, the inspector client is generated under
.vite-inspect, which can be easily served for further analysis. - Open Source: Released under the MIT License, this plugin is accessible for modification and enhancement by the community.
- Active Development: Continuously maintained and updated by its creator, Anthony Fu, ensuring that it keeps pace with the evolving Vite ecosystem.