Registry / devops / vite-plugin-devtools

vite-plugin-devtools

JSON →
library0.4.0jsnpmunverified

Vite plugin that integrates mobile debugging tools (vConsole and Eruda) into your Vite dev server. Version 0.4.0 released as a lightweight wrapper; no active maintenance or recent updates. Key differentiator: simple toggle-based inclusion of popular dev consoles without manual script injection, suitable for development builds only.

devops
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ESM-only; CommonJS require will fail in Vite config.

import devtools from "vite-plugin-devtools";

Default export, not named.

import devtools from "vite-plugin-devtools";

vConsole is a config option, not an export.

import devtools from "vite-plugin-devtools";

Shows basic setup with vConsole enabled. Plugin automatically injects devtools script in development.

// vite.config.js import { defineConfig } from "vite"; import devtools from "vite-plugin-devtools"; export default defineConfig({ plugins: [ devtools({ vconsole: true, }), ], });
Debug
Known footguns
gotchaPlugin only works in development mode; production builds strip it out automatically.
deprecatederuda option is experimental and may be removed in future versions.
gotchaUsing both vconsole and eruda simultaneously may cause conflicts.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources