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: packages/vite-plugin-svelte/CHANGELOG.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,42 @@
1
1
# @sveltejs/vite-plugin-svelte
2
2
3
+
## 1.0.0-next.16
4
+
5
+
### Major Changes
6
+
7
+
- automatically include svelte in vite config optimizeDeps.include ([#137](https://github.com/sveltejs/vite-plugin-svelte/pull/137))
8
+
9
+
Previously, svelte was automatically excluded. We include it now by default to improve deduplication.
10
+
11
+
As a result, svelte is pre-bundled by vite during dev, which it logs when starting the devserver
12
+
13
+
```shell
14
+
Pre-bundling dependencies:
15
+
svelte/animate
16
+
svelte/easing
17
+
svelte/internal
18
+
svelte/motion
19
+
svelte/store
20
+
(...and 2 more)
21
+
(this will be run only when your dependencies or config have changed)
22
+
```
23
+
24
+
And it's also visible in the browsers network tab, where requests for svelte imports now start with `node_modules/.vite/` during dev.
25
+
26
+
Check out the [vite pre-bundling documentation](https://vitejs.dev/guide/dep-pre-bundling.html) for more information.
27
+
28
+
To get the old behavior back, add the following to your vite config
29
+
30
+
```js
31
+
{
32
+
['svelte'];
33
+
}
34
+
```
35
+
36
+
### Patch Changes
37
+
38
+
- prepare for a change in vite 2.5.0 that would lead to errors in preprocessor dependency handling (fixes [#130](https://github.com/sveltejs/vite-plugin-svelte/issues/130)) ([#131](https://github.com/sveltejs/vite-plugin-svelte/pull/131))
0 commit comments