Open mvsde opened 3 years ago
There is a fantastic example by Anthony Fu for typed configs that work both in JS and TS:
// vite.config.js import { defineConfig } from 'vite' export default defineConfig({ /* ... */ })
The defineConfig function acts as pass through that adds types along the way.
defineConfig
There is a fantastic example by Anthony Fu for typed configs that work both in JS and TS:
The
defineConfig
function acts as pass through that adds types along the way.