Vite configuration and utilities for Vue 3 and TypeScript projects.
- Install the package:
pnpm add -D @wisdom-w/config-vite
- Create a
.npmrc
file with the following content:
public-hoist-pattern[]=!*@wisdom-w/config-vite*
- Create a
vite.config.ts
file with the following content:
For ESM projects:
import { createViteConfig } from '@wisdom-w/config-vite'
export default createViteConfig()
- Append the following
types
content totsconfig.json
:
{
"compilerOptions": {
"types": [
"@wisdom-w/config-vite/global",
],
},
}