diff options
author | 2024-11-15 03:27:27 -0800 | |
---|---|---|
committer | 2024-11-15 19:27:27 +0800 | |
commit | 55091174158a80f2e023571f6d10ffdbf17d274b (patch) | |
tree | a9a86fd208a2dd8cbde87224a07112afeb58baea /packages/integrations/svelte | |
parent | 453ec6b12f8c021e0bd0fd0ea9f71c8fc280f4b1 (diff) | |
download | astro-55091174158a80f2e023571f6d10ffdbf17d274b.tar.gz astro-55091174158a80f2e023571f6d10ffdbf17d274b.tar.zst astro-55091174158a80f2e023571f6d10ffdbf17d274b.zip |
[ci] release (#12427)astro@4.16.13@astrojs/svelte@6.0.0@astrojs/solid-js@4.4.3
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/svelte')
-rw-r--r-- | packages/integrations/svelte/CHANGELOG.md | 21 | ||||
-rw-r--r-- | packages/integrations/svelte/package.json | 2 |
2 files changed, 22 insertions, 1 deletions
diff --git a/packages/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md index 5e996c716..4199a0dd6 100644 --- a/packages/integrations/svelte/CHANGELOG.md +++ b/packages/integrations/svelte/CHANGELOG.md @@ -1,5 +1,26 @@ # @astrojs/svelte +## 6.0.0 + +### Major Changes + +- [#12364](https://github.com/withastro/astro/pull/12364) [`9fc2ab8`](https://github.com/withastro/astro/commit/9fc2ab8cc848739a21bfa3f754e9bec4926dc034) Thanks [@jdtjenkins](https://github.com/jdtjenkins)! - Adds support for Svelte 5. Svelte 3 and 4 are no longer supported. + + The integration will now also no longer add `vitePreprocess()` by default if a preprocessor is not set up in `svelte.config.js`. It is recommended to set up the Svelte config manually so that features like IDE completion and syntax highlighting work properly. + + If you're using SCSS, Stylus, etc in your Svelte component style tags, make sure that the preprocessor is also set up in `svelte.config.js`. For example: + + ```js + // svelte.config.js + import { vitePreprocess } from '@astrojs/svelte'; + + export default { + preprocess: vitePreprocess(), + }; + ``` + + Refer to the [Svelte 5 migration guide](https://svelte.dev/docs/svelte/v5-migration-guide) and [`@sveltejs/vite-plugin-svelte` changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/main/packages/vite-plugin-svelte/CHANGELOG.md#400) for details of their respective breaking changes. + ## 5.7.3 ### Patch Changes diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index 7c38648d1..017e9e2ea 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/svelte", - "version": "5.7.3", + "version": "6.0.0", "description": "Use Svelte components within Astro", "type": "module", "types": "./dist/index.d.ts", |