vite-plugin-vue-devtools
A vite plugin for Vue DevTools
This package has a good security score with no known vulnerabilities.
Community Reviews
Convenient dev tool but watch your build configuration
From an operations perspective, it's well-behaved in development mode with minimal performance overhead on hot module replacement. The plugin correctly tree-shakes itself out of production builds by default, but you absolutely must verify this in your bundle analyzer. I've seen misconfigured projects accidentally ship the devtools client code to production, adding unnecessary KB to bundles. Memory usage during development is reasonable, though the overlay does maintain its own connection state.
Configuration is minimal which is both good and bad - there's not much to tune for resource management or logging verbosity. Error handling is decent; if the devtools server fails to start, it logs clearly and doesn't crash your dev server. Breaking changes between major versions (6.x to 7.x to 8.x) have required config adjustments, particularly around client injection options.
Best for: Vue 3 projects using Vite where developers want integrated devtools without browser extensions during active development.
Avoid if: You need fine-grained control over devtools resource usage or are running in highly constrained development environments with strict port limitations.
Useful dev tooling but requires careful production safeguards
The main security concern is that it injects debugging capabilities and exposes component internals. While the plugin checks `import.meta.env.PROD`, relying solely on runtime checks for security-sensitive tooling feels fragile. I prefer explicit conditional imports or separate Vite configs for dev dependencies. The plugin also loads additional assets and establishes WebSocket connections for the DevTools UI, which increases the attack surface if accidentally shipped.
Error handling is generally silent when disabled, which is good for production but makes troubleshooting difficult when the plugin fails to load in development. Documentation could be clearer about build-time vs runtime safeguards and best practices for ensuring complete removal in production builds.
Best for: Development environments with strict build pipeline controls and explicit dev-only dependency management.
Avoid if: You need guaranteed compile-time exclusion of dev tools or work with complex multi-environment build configurations.
Seamless Vue DevTools integration with minimal setup
The developer experience shines in how unintrusive it is. The floating DevTools button doesn't interfere with your app's UI, and the panel integrates naturally into your workflow. Error messages are clear when things go wrong, though you rarely encounter issues. The automatic detection of Vue components and state management libraries (Pinia, Vuex) works reliably without manual configuration.
Documentation is concise but sufficient for most use cases. The main gotcha is understanding when to disable it - the plugin handles production exclusion by default, but custom Vite configurations might need explicit environment checks. Migration between versions has been smooth, with breaking changes clearly communicated in release notes.
Best for: Vue 3 projects using Vite that want integrated DevTools without browser extension dependencies.
Avoid if: You need the standalone browser extension's advanced features or are working with Vue 2 projects.
Sign in to write a review
Sign In