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
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -94,13 +94,13 @@ These options are specific to the Vite plugin itself.
94
94
95
95
-**Type:**`string | string[]`
96
96
97
-
A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files the plugin should operate on. By default, all svelte files are included.
97
+
A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files the plugin should operate on. By default, all svelte files are included.
98
98
99
99
### exclude
100
100
101
101
-**Type:**`string | string[]`
102
102
103
-
A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files to be ignored by the plugin. By default, no files are ignored.
103
+
A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files to be ignored by the plugin. By default, no files are ignored.
104
104
105
105
### extensions
106
106
@@ -161,13 +161,12 @@ A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns
161
161
-**Type:**`boolean | string[]`
162
162
-**Default:**`false`
163
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
164
+
`vite-plugin-svelte` automatically manages [pre-bundling for Svelte components](./faq.md#what-is-going-on-with-vite-and-pre-bundling-dependencies). To opt-out of this automatic behavior you can use:
166
165
167
166
-`disableDependencyReinclusion: true` to disable all re-inclusions
168
167
-`disableDependencyReinclusion: ['foo']` to disable re-inclusions only for dependencies of `foo`.
169
168
170
-
If you want to manually re-include the dependency `bar`of `foo`, you can add `{optimizeDeps:{include:['foo > bar']}}` to your Vite config
169
+
If you want to manually re-include the dependency `bar`of `foo`, you can add `{optimizeDeps:{include:['foo > bar']}}` to your Vite config
171
170
172
171
> This is currently required for hybrid packages like Routify, that export both Node and browser code.
Copy file name to clipboardExpand all lines: docs/faq.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -93,8 +93,7 @@ For reference, check out [windicss](https://github.com/windicss/vite-plugin-wind
93
93
94
94
### What is going on with Vite and `Pre-bundling dependencies:`?
95
95
96
-
Pre-bundling dependencies is an [optimization in Vite](https://vitejs.dev/guide/dep-pre-bundling.html).
97
-
It is required for CJS dependencies, as Vite's development server only works with ES modules on the client side.
96
+
Pre-bundling dependencies is an [optimization in Vite](https://vitejs.dev/guide/dep-pre-bundling.html). It is required for CJS dependencies, as Vite's development server only works with ES modules on the client side.
98
97
99
98
Thanks to [a new API in Vite](https://github.com/vitejs/vite/pull/4634), [vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/pull/157) automatically handles pre-bundling these for you.
0 commit comments