Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
::: info Note
Currently, only [Modern.js](/integrations/framework/modernjs) supports data fetching in SSR environments.
Currently, only [Modern.js](/integrations/framework/modernjs/index.html) supports data fetching in SSR environments.
:::

In the consumer, we need to use the [createLazyComponent](/guide/bridge/react/load-component.html#what-is-createlazycomponent) API to load the remote component and fetch its data.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
::: tip
Producers can use [Rslib](/integrations/build-tool/rslib#ssr) and [Modern.js](/integrations/framework/modernjs).
Producers can use [Rslib](/integrations/build-tool/rslib.html#ssr) and [Modern.js](/integrations/framework/modernjs/index.html).
:::
2 changes: 1 addition & 1 deletion apps/website-new/docs/en/_components/secondary-build.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Producing a secondary tree-shaken shared artifact

:::warning Note
If your goal is “tree-shake a shared dependency for a single application”, [usedExports](../../../docs/configure/shared#usedexports) is usually enough.
If your goal is “tree-shake a shared dependency for a single application”, [usedExports](/configure/shared.html#usedexports) is usually enough.

This section is about generating a standalone secondary artifact that can be loaded at runtime on demand, and can be distributed or reused from the deployment side.
:::
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
::: info 注意
目前仅 [Modern.js](/integrations/framework/modernjs) 支持在 SSR 环境下使用数据获取能力。
目前仅 [Modern.js](/integrations/framework/modernjs/index.html) 支持在 SSR 环境下使用数据获取能力。
:::

在消费者中,我们需要通过 [createLazyComponent](/guide/bridge/react/load-component.html#什么是-createlazycomponent) API 来加载远程组件,并获取数据。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
::: tip
生产者可以使用 [Rslib](/integrations/build-tool/rslib#ssr) 和 [Modern.js](/integrations/framework/modernjs)。
生产者可以使用 [Rslib](/integrations/build-tool/rslib.html#ssr) 和 [Modern.js](/integrations/framework/modernjs/index.html)。
:::
2 changes: 1 addition & 1 deletion apps/website-new/docs/zh/_components/secondary-build.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 生成二次构建(secondary)共享产物

:::warning 注意
如果你的诉求是“让单个应用按需裁剪共享依赖”,通常只需要配置 [usedExports](../../../docs/configure/shared#usedexports)。
如果你的诉求是“让单个应用按需裁剪共享依赖”,通常只需要配置 [usedExports](/configure/shared.html#usedexports)。

本节介绍的是生成一份可被运行时按需加载的独立共享产物(secondary),用于在部署侧统一下发或复用。
:::
Expand Down
Loading