You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+15
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,21 @@ A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns
156
156
157
157
Some Vite plugins can contribute additional preprocessors by defining [api.sveltePreprocess](./faq.md#how-do-i-add-a-svelte-preprocessor-from-a-vite-plugin). If you don't want to use them, set this to true to ignore them all or use an array of strings with plugin names to specify which.
158
158
159
+
### disableDependencyReinclusion
160
+
161
+
-**Type:**`boolean | string[]`
162
+
-**Default:**`false`
163
+
164
+
vite-plugin-svelte automatically manages [pre-bundling for Svelte components](./faq.md#what-is-going-on-with-vite-and-pre-bundling-dependencies).
165
+
To opt-out of this automatic behavior you can use
166
+
167
+
-`disableDependencyReinclusion: true` to disable all re-inclusions
168
+
-`disableDependencyReinclusion: ['foo']` to disable re-inclusions only for dependencies of `foo`.
169
+
170
+
If you want to manually re-include the dependency `bar`of `foo`, you can add `{optimizeDeps:{include:['foo > bar']}}` to your Vite config
171
+
172
+
> This is currently required for hybrid packages like Routify, that export both Node and browser code.
173
+
159
174
## Experimental options
160
175
161
176
These options are considered experimental and breaking changes to them can occur in any release! Specify them under the `experimental` option.
0 commit comments