This package enables running Vite's own configuration (vite.config.ts) through Vite itself, allowing transformation and execution of the config file with the same tool it configures. Currently at v0.9.0, it supports Vite versions 4 through 8 as peer dependencies, requires Node.js >=20.19.0, and is released frequently (multiple versions per month). Key differentiator: it uses Vite to process its own config, enabling advanced plugin-based config transformations and dependency inlining that normal Vite config loading cannot achieve.
npm install vite-hyper-configVerified import paths — ran on the pinned version, not inferred.
Shows basic usage of startVite with three optional configuration objects: app config, hyper config (for vite.config.ts), and runner options.
Update Node.js to version 20.19.0 or later.
Use ESM imports or set type: 'module' in package.json.
Use import { startVite } from 'vite-hyper-config'.Ensure your project has a compatible version of vite installed.
Always refer to the latest documentation when upgrading.
Change to ESM import: import { startVite } from 'vite-hyper-config'Use named import: import { startVite } from 'vite-hyper-config'Update Node.js to version >=20.19.0
Install vite: npm i vite