Skip to content

Commit

Permalink
docs: remove the tip that rspack is not yet supported (#6208)
Browse files Browse the repository at this point in the history
  • Loading branch information
yimingjfe committed Sep 11, 2024
1 parent cfb74ed commit 8247b7d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,7 @@ For applications with higher performance requirements, prefetching can further e

:::tip

- This feature is currently only supported in Webpack projects and not in Rspack projects.
- Data preloading currently only preloads data returned by the [Data Loader](/guides/basic-features/data/data-fetch) in SSR projects.
Data preloading currently only preloads data returned by the [Data Loader](/guides/basic-features/data/data-fetch) in SSR projects.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,7 @@ Modern.js 支持通过 `loading.tsx` 文件来解决这个问题,`routes/` 下

:::tip

- 该功能目前仅在 Webpack 项目中支持,Rspack 项目暂不支持。
- 对数据的预加载目前只会预加载 SSR 项目中 [Data Loader](/guides/basic-features/data/data-fetch) 中返回的数据。
对数据的预加载目前只会预加载 SSR 项目中 [Data Loader](/guides/basic-features/data/data-fetch) 中返回的数据。

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ interface PrefetchHandlers {
onTouchStart?: TouchEventHandler<Element>;
}

// TODO: 支持 rspack
declare const __webpack_chunk_load__:
| ((chunkId: string | number) => Promise<void>)
| undefined;
Expand Down

0 comments on commit 8247b7d

Please sign in to comment.