Vite Plugin Enter Dev

raw JSON →
0.0.7 verified Mon Apr 27 auth: no javascript

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.

error Cannot find module 'vite-plugin-enter-dev'
cause Package not installed or typo in package name.
fix
Run 'npm install vite-plugin-enter-dev' and check package.json.
error ERR_REQUIRE_ESM
cause Using require() on an ESM-only package.
fix
Replace require() with import or use dynamic import().
gotcha Plugin is ESM-only; using require() will throw an error.
fix Use import syntax instead of require().
deprecated Version 0.0.7 is not stable; API may change without major version bump.
fix Pin exact version and test upgrades carefully.
gotcha Requires Vite ^5.0.0 or ^6.0.0; incompatible with Vite 4.
fix Upgrade Vite to version 5 or 6.
npm install vite-plugin-enter-dev
yarn add vite-plugin-enter-dev
pnpm add vite-plugin-enter-dev

Shows basic usage of the plugin in a Vite config file, importing and registering the plugin.

// vite.config.ts
import { defineConfig } from 'vite';
import { enterDevPlugin } from 'vite-plugin-enter-dev';

export default defineConfig({
  plugins: [
    enterDevPlugin({
      // options here
    })
  ]
});