vite-hyper-config
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

vite-hyper-config npm

Unit Test

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

Install

npm i vite-hyper-config

Usage

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

License

MIT License © 2023 三咲智子 Kevin Deng

Readme

Keywords

none

Package Sidebar

Install

npm i vite-hyper-config

Weekly Downloads

79

Version

0.2.1

License

MIT

Unpacked Size

15.7 kB

Total Files

5

Last publish

Collaborators

  • sxzz