From e0929a68ba389e40959dfa9ce7e55c8222f645f4 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 25 Sep 2023 00:14:38 -0500 Subject: [PATCH] docs: Update vite docs to use function --- docs/guide/vite.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guide/vite.md b/docs/guide/vite.md index 9f8235fc..688cda95 100644 --- a/docs/guide/vite.md +++ b/docs/guide/vite.md @@ -10,9 +10,9 @@ All of Vite's config can be customized by setting the `vite` configuration in yo import { defineConfig } from 'wxt'; export default defineConfig({ - vite: { + vite: () => ({ // Same as `defineConfig({ ... })` inside vite.config.ts - }, + }), }); ``` @@ -26,10 +26,10 @@ All plugins should work in WXT, but it is worth pointing out that since WXT orch import { defineConfig } from 'wxt'; export default defineConfig({ - vite: { + vite: () => ({ plugins: [ // ... ], - }, + }), }); ```