Skip to content

Commit 6196351

Browse files
Version Packages (next) (#132)
* Version Packages (next) * docs: fix PR link in changelog entry Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: dominikg <[email protected]>
1 parent e306c3d commit 6196351

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.changeset/pre.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"famous-lemons-draw",
4646
"flat-books-kick",
4747
"flat-mayflies-smell",
48+
"forty-lobsters-double",
4849
"forty-parents-jam",
4950
"fresh-penguins-heal",
5051
"fuzzy-bottles-teach",
@@ -64,6 +65,7 @@
6465
"purple-spiders-sparkle",
6566
"selfish-experts-rest",
6667
"serious-jeans-hug",
68+
"seven-cows-leave",
6769
"sharp-laws-leave",
6870
"two-queens-roll",
6971
"wicked-hairs-share",

packages/vite-plugin-svelte/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @sveltejs/vite-plugin-svelte
22

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))
39+
340
## 1.0.0-next.15
441

542
### Major Changes

packages/vite-plugin-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sveltejs/vite-plugin-svelte",
3-
"version": "1.0.0-next.15",
3+
"version": "1.0.0-next.16",
44
"license": "MIT",
55
"author": "dominikg",
66
"files": [

0 commit comments

Comments
 (0)