# vite-hyper-config

> Use Vite to run Vite's own config.

Latest version **0.9.0** (published 2026-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install vite-hyper-config
pnpm add vite-hyper-config
yarn add vite-hyper-config
bun add vite-hyper-config
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2026-04-26 |
| First published | 2023-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.19.0 |
| Dependencies | 3 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18 |
| Author | Kevin Deng |
| Maintainers | sxzz |

## Links

- npm: https://www.npmjs.com/package/vite-hyper-config
- Repository: https://github.com/sxzz/vite-hyper-config
- Homepage: https://github.com/sxzz/vite-hyper-config#readme
- Issues: https://github.com/sxzz/vite-hyper-config/issues
- Funding: https://github.com/sponsors/sxzz
- npm.io page: https://npm.io/package/vite-hyper-config

## Dependencies (3)

- [cac](https://npm.io/package/cac.md) ^7.0.0
- [vite-node](https://npm.io/package/vite-node.md) ^6.0.0
- [picocolors](https://npm.io/package/picocolors.md) ^1.1.1

## Recent versions

- 0.9.0 (latest) — 2026-04-26
- 0.8.1 — 2025-12-09
- 0.8.0 — 2025-11-11
- 0.7.1 — 2025-07-29
- 0.7.0 — 2025-05-10
- 0.6.1 — 2025-03-05
- 0.6.0 — 2025-02-06
- 0.5.0 — 2025-01-13
- 0.4.1 — 2024-11-26
- 0.4.0 — 2024-09-09
- 0.3.0 — 2024-09-06
- 0.2.1 — 2023-12-05
- 0.2.0 — 2023-11-30
- 0.1.1 — 2023-11-30
- 0.1.0 — 2023-11-30

## README

# vite-hyper-config

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Unit Test][unit-test-src]][unit-test-href]

Use Vite to run Vite's own config. In other words, transform and run `vite.config.ts` with Vite.

## Install

```bash
npm i vite-hyper-config
```

## Usage

```ts
import { startVite } from 'vite-hyper-config'
import { DevPlugin } from './plugin'

startVite(
  {
    // (Optional)
    // Vite config for transforming client code (undering `src`)
    // Will be merged with result of `vite.config.ts` if it exists
  },
  {
    // (Optional)
    // Vite config for transforming `vite.config.ts` itself
    plugins: [DevPlugin()],
  },
  {
    // (Optional)
    // Runner options, see https://github.com/vitest-dev/vitest/blob/main/packages/vite-node/src/types.ts#L92-L111
    deps: {
      // Also transform some dependency
      inline: ['@vitejs/plugin-vue'],
    },
  },
)
```

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg">
    <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/>
  </a>
</p>

## License

[MIT](./LICENSE) License © 2023-PRESENT [Kevin Deng](https://github.com/sxzz)

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/vite-hyper-config.svg
[npm-version-href]: https://npmjs.com/package/vite-hyper-config
[npm-downloads-src]: https://img.shields.io/npm/dm/vite-hyper-config
[npm-downloads-href]: https://www.npmcharts.com/compare/vite-hyper-config?interval=30
[unit-test-src]: https://github.com/sxzz/vite-hyper-config/actions/workflows/unit-test.yml/badge.svg
[unit-test-href]: https://github.com/sxzz/vite-hyper-config/actions/workflows/unit-test.yml

---
_Source: https://npm.io/package/vite-hyper-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
