From bfd5a9a69aa11e7a3efefd58cd25a23bd82410ed Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Fri, 17 Sep 2021 11:27:36 -0400 Subject: [PATCH] chore: use `defineConfig` in readme Co-authored-by: Shinigami --- packages/plugin-react/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/plugin-react/README.md b/packages/plugin-react/README.md index 4ff7687b078a15..4f3f262d38ddab 100644 --- a/packages/plugin-react/README.md +++ b/packages/plugin-react/README.md @@ -10,11 +10,12 @@ The all-in-one Vite plugin for React projects. ```js // vite.config.js +import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -export default { +export default defineConfig({ plugins: [react()] -} +}) ``` ## Filter which files use Fast Refresh