Skip to content

Commit

Permalink
Version Packages (next) (#132)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Aug 12, 2021
1 parent e306c3d commit 6196351
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"famous-lemons-draw",
"flat-books-kick",
"flat-mayflies-smell",
"forty-lobsters-double",
"forty-parents-jam",
"fresh-penguins-heal",
"fuzzy-bottles-teach",
Expand All @@ -64,6 +65,7 @@
"purple-spiders-sparkle",
"selfish-experts-rest",
"serious-jeans-hug",
"seven-cows-leave",
"sharp-laws-leave",
"two-queens-roll",
"wicked-hairs-share",
Expand Down
37 changes: 37 additions & 0 deletions packages/vite-plugin-svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# @sveltejs/vite-plugin-svelte

## 1.0.0-next.16

### Major Changes

- automatically include svelte in vite config optimizeDeps.include ([#137](https://github.com/sveltejs/vite-plugin-svelte/pull/137))

Previously, svelte was automatically excluded. We include it now by default to improve deduplication.

As a result, svelte is pre-bundled by vite during dev, which it logs when starting the devserver

```shell
Pre-bundling dependencies:
svelte/animate
svelte/easing
svelte/internal
svelte/motion
svelte/store
(...and 2 more)
(this will be run only when your dependencies or config have changed)
```

And it's also visible in the browsers network tab, where requests for svelte imports now start with `node_modules/.vite/` during dev.

Check out the [vite pre-bundling documentation](https://vitejs.dev/guide/dep-pre-bundling.html) for more information.

To get the old behavior back, add the following to your vite config

```js
{
['svelte'];
}
```

### Patch Changes

- 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))

## 1.0.0-next.15

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/vite-plugin-svelte",
"version": "1.0.0-next.15",
"version": "1.0.0-next.16",
"license": "MIT",
"author": "dominikg",
"files": [
Expand Down

0 comments on commit 6196351

Please sign in to comment.