Skip to content

Commit

Permalink
docs: add ts vite (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
reslear authored Oct 9, 2022
1 parent 2bf422c commit fd7904d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ module.exports = {
};
```

Usage with vite TypeScript (vite.config.ts)

```ts
import { defineConfig, type PluginOption } from 'vite'
export default defineConfig({
plugins: [visualizer() as PluginOption],
})
```

Usage with SvelteKit (vite.config.js)

```js
Expand Down

0 comments on commit fd7904d

Please sign in to comment.