{"id":22646,"library":"vite-plugin-enter-dev","title":"Vite Plugin Enter Dev","description":"A Vite plugin providing development enhancements, such as auto-restarting the Vite dev server when configuration files change. Currently at version 0.0.7, with a moderate release cadence. Supports both Vite 5 and 6. Unlike competitors like vite-plugin-restart or @vitejs/plugin-restart, this plugin is minimal and focused on specific use cases from enter.pro.","status":"active","version":"0.0.7","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","vite","vite-plugin","development","enter","enter.pro","typescript"],"install":[{"cmd":"npm install vite-plugin-enter-dev","lang":"bash","label":"npm"},{"cmd":"yarn add vite-plugin-enter-dev","lang":"bash","label":"yarn"},{"cmd":"pnpm add vite-plugin-enter-dev","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; plugin runs as a Vite plugin","package":"vite","optional":false}],"imports":[{"note":"ESM-only; CommonJS require will fail.","wrong":"const enterDevPlugin = require('vite-plugin-enter-dev')","symbol":"enterDevPlugin","correct":"import { enterDevPlugin } from 'vite-plugin-enter-dev'"},{"note":"Default export available; avoid mixing with named export.","wrong":"const vitePluginEnterDev = require('vite-plugin-enter-dev').default","symbol":"default","correct":"import vitePluginEnterDev from 'vite-plugin-enter-dev'"},{"note":"Type-only import to avoid runtime side effects.","wrong":"import { Config } from 'vite-plugin-enter-dev'","symbol":"type Config","correct":"import type { Config } from 'vite-plugin-enter-dev'"}],"quickstart":{"code":"// vite.config.ts\nimport { defineConfig } from 'vite';\nimport { enterDevPlugin } from 'vite-plugin-enter-dev';\n\nexport default defineConfig({\n  plugins: [\n    enterDevPlugin({\n      // options here\n    })\n  ]\n});","lang":"typescript","description":"Shows basic usage of the plugin in a Vite config file, importing and registering the plugin."},"warnings":[{"fix":"Use import syntax instead of require().","message":"Plugin is ESM-only; using require() will throw an error.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Pin exact version and test upgrades carefully.","message":"Version 0.0.7 is not stable; API may change without major version bump.","severity":"deprecated","affected_versions":"<1.0.0"},{"fix":"Upgrade Vite to version 5 or 6.","message":"Requires Vite ^5.0.0 or ^6.0.0; incompatible with Vite 4.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install vite-plugin-enter-dev' and check package.json.","cause":"Package not installed or typo in package name.","error":"Cannot find module 'vite-plugin-enter-dev'"},{"fix":"Replace require() with import or use dynamic import().","cause":"Using require() on an ESM-only package.","error":"ERR_REQUIRE_ESM"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}