1.5.3 • Published 5 days ago

@wisdom-w/config-vite v1.5.3

Weekly downloads
-
License
-
Repository
-
Last release
5 days ago

Vite configuration

Vite configuration and utilities for Vue 3 and TypeScript projects.

How to use

  1. Install the package:
pnpm add -D @wisdom-w/config-vite
  1. Create a .npmrc file with the following content:
public-hoist-pattern[]=!*@wisdom-w/config-vite*
  1. Create a vite.config.ts file with the following content:

For ESM projects:

import { createViteConfig } from '@wisdom-w/config-vite'

export default createViteConfig()
  1. Append the following types content to tsconfig.json:
{
  "compilerOptions": {
    "types": [
      "@wisdom-w/config-vite/global",
    ],
  },
}