@astrojs/svelte@9.0.0
vectordotdev/vector@astrojs/svelte@9.0.0Jun 22, 2026by astrobot-houston
AI Summary
This major release upgrades to Vite v8 and introduces a new container-renderer entrypoint to prevent bundlers from including unrelated exports. The update also brings @sveltejs/vite-plugin-svelte up to version 7.
Key Highlights
- Upgrade to Vite v8
- New container-renderer entrypoint for getContainerRenderer()
- Updated @sveltejs/vite-plugin-svelte to v7
- Backward compatibility with deprecation warnings
New Features
- Import getContainerRenderer from '@astrojs/svelte/container-renderer'
- Bundlers no longer include unrelated exports
- Improved Svelte plugin compatibility
Full Release Notes
### Major Changes
- [#15819](https://github.com/withastro/astro/pull/15819) [`cafec4e`](https://github.com/withastro/astro/commit/cafec4e23365061491103dfce2e889a15cf86f27) Thanks [@delucis](https://github.com/delucis)! - Upgrade to Vite v8
### Minor Changes
- [#17093](https://github.com/withastro/astro/pull/17093) [`4585fe5`](https://github.com/withastro/astro/commit/4585fe57dda06226058118f90a809f9e33d4b2af) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Replaces the import entrypoint of `getContainerRenderer()`
A new `container-renderer` entrypoint exporting `getContainerRenderer()` has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.
If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the `getContainerRenderer()` import for React:
```diff
- import { getContainerRenderer } from '@astrojs/react';
+ import { getContainerRenderer } from '@astrojs/react/container-renderer';
```
Importing `getContainerRenderer()` from the package root still works, but is now deprecated and logs a warning.
- [#16549](https://github.com/withastro/astro/pull/16549) [`9d9d516`](https://github.com/withastro/astro/commit/9d9d516ba95fb888d5e8c62892269cf047b523e9) Thanks [@ocavue](https://github.com/ocavue)! - Updates `@sveltejs/vite-plugin-svelte` to v7. No user action is necessary.
### Patch Changes
- [#17027](https://github.com/withastro/astro/pull/17027) [`241250b`](https://github.com/withastro/astro/commit/241250bf126f39c86a8aedd38df106e533301752) Thanks [@ocavue](https://github.com/ocavue)! - Triggers beta prereleases for packages that are still on alpha