1.5.2 • Published 1 month ago

@wisdom-w/config-vite v1.5.2

Weekly downloads
-
License
-
Repository
-
Last release
1 month 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",
    ],
  },
}