Skip to content

Commit b6f9bd0

Browse files
committed
chore: update changelog to include details about preprocess and compile change
1 parent d049014 commit b6f9bd0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

packages/vite-plugin-svelte/CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,20 @@
2020

2121

2222
- define filters using object hook syntax and optimize the filter for resolveId ([#1132](https://github.com/sveltejs/vite-plugin-svelte/pull/1132))
23-
24-
> [!NOTE]
23+
24+
> **NOTE**
2525
> include logic has changed to files matching `svelteConfig.include` **OR** `svelteConfig.extensions`. Previously only files matching both were loaded and transformed.
2626
2727
- split preprocess and compile into separate plugins ([#1145](https://github.com/sveltejs/vite-plugin-svelte/pull/1145))
2828

29+
It allows vite plugins to transform code between preprocess and compile, see [docs](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/advanced-usage.md#transform-svelte-files-with-vite-plugins) and is the recommended way to replace `plugin.api.sveltePreprocess` usage in other vite plugins.
30+
You can also use [vite-plugin-inspect](https://github.com/antfu-collective/vite-plugin-inspect) now to inspect the result of svelte.preprocess by checking the transform of `vite-plugin-svelte:preprocess`
31+
32+
> **NOTE**
33+
> This can be a breaking change in case you have other plugins besides vite-plugin-svelte transforming your svelte code
34+
> To fix this, read the [docs](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/advanced-usage.md#transform-svelte-files-with-vite-plugins) on how to order plugins in relation to preprocess and compile
35+
36+
2937

3038
### Minor Changes
3139

@@ -37,7 +45,7 @@
3745

3846

3947
- add support for loading TypeScript Svelte config files in runtimes that support it ([#1142](https://github.com/sveltejs/vite-plugin-svelte/pull/1142))
40-
48+
4149
> **NOTE**
4250
> This change only applies to vite-plugin-svelte.
4351
>
@@ -66,8 +74,6 @@
6674

6775
- deprecate `plugin.api.sveltePreprocess` ([#1145](https://github.com/sveltejs/vite-plugin-svelte/pull/1145))
6876

69-
- Updated dependencies [[`63d1fc6`](https://github.com/sveltejs/vite-plugin-svelte/commit/63d1fc6809c5f9e1e5ed3116d417c82d8781079d), [`74e701f`](https://github.com/sveltejs/vite-plugin-svelte/commit/74e701f2ee306b70196641ea0cb6fc23c58b6296), [`921ba4e`](https://github.com/sveltejs/vite-plugin-svelte/commit/921ba4eded98091b8da2cbdf316e1f75af709e67), [`59e082e`](https://github.com/sveltejs/vite-plugin-svelte/commit/59e082e50277aeb71a7ce8373128d73f4ceeb5fd)]:
70-
- @sveltejs/vite-plugin-svelte-inspector@5.0.0
7177

7278
## 6.0.0-next.3
7379
### Patch Changes

0 commit comments

Comments
 (0)