From 94668725e8d7bdfd5ed0f09b3c167d738bb114a0 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Thu, 1 Jun 2023 13:22:30 +0200 Subject: [PATCH] docs: add mention to experimentalOptimizer --- docs/config/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/index.md b/docs/config/index.md index 107463f96..bab82c319 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -124,7 +124,7 @@ For `jsdom` and `happy-dom` environments, when Vitest will encounter the externa Be aware that only packages in `deps.experimentalOptimizer.include` option are bundled (some plugins populate this automatically, like Svelte). You can read more about available options in [Vite](https://vitejs.dev/config/dep-optimization-options.html) docs. -This options also inherits your `optimizeDeps` configuration. If you redefine `include`/`exclude`/`entries` option in `deps.experimentalOptimizer` it will overwrite your `optimizeDeps` when running tests. +This options also inherits your `optimizeDeps` configuration. If you redefine `include`/`exclude` option in `deps.experimentalOptimizer` it will extend your `optimizeDeps` when running tests. Vitest automatically removes the same options from `include`, if they are listed in `exclude`. ::: tip You will not be able to edit your `node_modules` code for debugging, since the code is actually located in your `cacheDir` or `test.cache.dir` directory. If you want to debug with `console.log` statements, edit it directly or force rebundling with `deps.experimentalOptimizer.force` option. -- 2.54.0