diff --git a/packages/document/main-doc/docs/en/guides/basic-features/routes.mdx b/packages/document/main-doc/docs/en/guides/basic-features/routes.mdx index ca9be169552d..5c930a9310c1 100644 --- a/packages/document/main-doc/docs/en/guides/basic-features/routes.mdx +++ b/packages/document/main-doc/docs/en/guides/basic-features/routes.mdx @@ -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. ::: diff --git a/packages/document/main-doc/docs/zh/guides/basic-features/routes.mdx b/packages/document/main-doc/docs/zh/guides/basic-features/routes.mdx index f18454651614..d577da7a3c12 100644 --- a/packages/document/main-doc/docs/zh/guides/basic-features/routes.mdx +++ b/packages/document/main-doc/docs/zh/guides/basic-features/routes.mdx @@ -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) 中返回的数据。 ::: diff --git a/packages/runtime/plugin-runtime/src/router/runtime/PrefetchLink.tsx b/packages/runtime/plugin-runtime/src/router/runtime/PrefetchLink.tsx index 1b865d405ec9..a29cf94f48b9 100644 --- a/packages/runtime/plugin-runtime/src/router/runtime/PrefetchLink.tsx +++ b/packages/runtime/plugin-runtime/src/router/runtime/PrefetchLink.tsx @@ -27,7 +27,6 @@ interface PrefetchHandlers { onTouchStart?: TouchEventHandler; } -// TODO: 支持 rspack declare const __webpack_chunk_load__: | ((chunkId: string | number) => Promise) | undefined;