Skip to content

docs: Svelte v5 HMR tip #4384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/en/guide/framework/svelte.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Svelte

In this document, you will learn how to build a Svelte 5 or Svelte 4 application using Rsbuild.
In this document, you will learn how to build a Svelte application using Rsbuild.

## Create Svelte project

Expand All @@ -17,7 +17,7 @@ import { PackageManagerTabs } from '@theme';
}}
/>

Then select `Svelte 5` or `Svelte 4` when prompted to "Select framework".
Then select `Svelte` when prompted to "Select framework".

## Use Svelte in an existing project

Expand Down
4 changes: 4 additions & 0 deletions website/docs/en/plugins/list/plugin-svelte.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ pluginSvelte({
},
});
```

## Notes

Currently, `svelte-loader` does not support HMR for Svelte v5, see [svelte-loader - Hot Reload](https://github.com/sveltejs/svelte-loader?tab=readme-ov-file#hot-reload).
4 changes: 2 additions & 2 deletions website/docs/zh/guide/framework/svelte.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Svelte

在这篇文档中,你可以了解到如何基于 Rsbuild 来构建一个 Svelte 5 或 Svelte 4 应用。
在这篇文档中,你可以了解到如何基于 Rsbuild 来构建一个 Svelte 应用。

## 创建 Svelte 项目

Expand All @@ -17,7 +17,7 @@ import { PackageManagerTabs } from '@theme';
}}
/>

然后在 `Select framework` 时选择 `Svelte 5` 或 `Svelte 4` 即可。
然后在 `Select framework` 时选择 `Svelte` 即可。

## 在已有项目中使用 Svelte

Expand Down
4 changes: 4 additions & 0 deletions website/docs/zh/plugins/list/plugin-svelte.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ pluginSvelte({
},
});
```

## 注意事项

目前 `svelte-loader` 暂不支持 Svelte v5 热更新,详见 [svelte-loader - Hot Reload](https://github.com/sveltejs/svelte-loader?tab=readme-ov-file#hot-reload)。
Loading