From dca061230291e5ae522c06f8f37a964be2252836 Mon Sep 17 00:00:00 2001 From: Gwenn Le Bihan Date: Sat, 17 May 2025 15:28:51 +0200 Subject: [PATCH] docs: fix config filename for Production build section (#7926) Co-authored-by: Vladimir --- docs/guide/in-source.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/guide/in-source.md b/docs/guide/in-source.md index 3864d7a08..552526fbd 100644 --- a/docs/guide/in-source.md +++ b/docs/guide/in-source.md @@ -55,8 +55,10 @@ $ npx vitest For the production build, you will need to set the `define` options in your config file, letting the bundler do the dead code elimination. For example, in Vite -```ts [vitest.config.ts] -import { defineConfig } from 'vitest/config' +```ts [vite.config.ts] +/// + +import { defineConfig } from 'vite' export default defineConfig({ test: { -- 2.51.2