Skip to content

Commit a68bfa9

Browse files
authored
docs: upgrade Rspress-2.0.0-beta.19 (#10913)
1 parent b57e1e5 commit a68bfa9

File tree

13 files changed

+207
-256
lines changed

13 files changed

+207
-256
lines changed

pnpm-lock.yaml

Lines changed: 194 additions & 243 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

website/docs/en/blog/announcing-1-0-alpha.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ For Rsbuild users, please wait for the release of Rsbuild 1.0 alpha version (exp
163163

164164
### resolve.tsConfigPath
165165

166-
`resolve.tsConfigPath` config has been removed, please use [resolve.tsConfig](config/resolve#resolvetsconfig) instead.
166+
`resolve.tsConfigPath` config has been removed, please use [resolve.tsConfig](/config/resolve#resolvetsconfig) instead.
167167

168168
```diff title="rspack.config.mjs"
169169
export default {

website/docs/en/config/context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Tabs, Tab } from '@theme';
1313

1414
The `context` configuration is used to set the base directory for Rspack builds.
1515

16-
`context` is an absolute path that is used as the base path for relative paths in Rspack configurations such as [entry](config/entry) and [output](config/output).
16+
`context` is an absolute path that is used as the base path for relative paths in Rspack configurations such as [entry](/config/entry) and [output](/config/output).
1717

1818
By default, Rspack uses the current working directory of the Node.js process as the base directory. In most cases, it is recommended to set a base directory manually, rather than relying on the current working directory of Node.js.
1919

website/docs/en/guide/tech/preact.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
};
5656
```
5757

58-
Refer to [Builtin swc-loader](guide/features/builtin-swc-loader) for detailed configurations.
58+
Refer to [Builtin swc-loader](/guide/features/builtin-swc-loader) for detailed configurations.
5959

6060
Refer to [examples/preact](https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/preact) for the full example.
6161

website/docs/en/plugins/webpack/split-chunks-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ import { value2 } from 'shared';
331331
value2;
332332
```
333333

334-
In the default strategy, the `shared` module appears in 3 chunks. If it meets the [minSize for splitting](plugins/webpack/split-chunks-plugin#splitchunksminsize), then the `shared` module should be extracted into a separate chunk.
334+
In the default strategy, the `shared` module appears in 3 chunks. If it meets the [minSize for splitting](/plugins/webpack/split-chunks-plugin#splitchunksminsize), then the `shared` module should be extracted into a separate chunk.
335335

336336
```
337337
chunk foo, chunk bar
File renamed without changes.

website/docs/zh/api/runtime-api/module-methods.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default {
6767
function import(path: string): Promise;
6868
```
6969

70-
动态加载模块,参考 [Dynamic import](guide/optimization/code-splitting#动态导入dynamic-import) 了解更多。
70+
动态加载模块,参考 [Dynamic import](/guide/optimization/code-splitting#动态导入dynamic-import) 了解更多。
7171

7272
`import()` 的调用被视为分割点,这意味着请求的模块及其子模块被拆分成单独的 chunk。
7373

website/docs/zh/blog/announcing-1-0-alpha.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pnpm add -D --save-exact @rspack/core@alpha @rspack/cli@alpha
163163

164164
### resolve.tsConfigPath
165165

166-
`resolve.tsConfigPath` 配置已被移除,请使用 [resolve.tsConfig](config/resolve#resolvetsconfig) 代替。
166+
`resolve.tsConfigPath` 配置已被移除,请使用 [resolve.tsConfig](/config/resolve#resolvetsconfig) 代替。
167167

168168
```diff title="rspack.config.mjs"
169169
export default {

website/docs/zh/config/context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Tabs, Tab } from '@theme';
1313

1414
基础目录:该选项用于设置 Rspack 构建时所依赖的基础路径。
1515

16-
`context` 是一个绝对路径,它被用作为 Rspack 配置中相对路径的基础路径,比如 [entry](config/entry)[output](config/output) 等配置中包含的相对路径。
16+
`context` 是一个绝对路径,它被用作为 Rspack 配置中相对路径的基础路径,比如 [entry](/config/entry)[output](/config/output) 等配置中包含的相对路径。
1717

1818
默认情况下,Rspack 会使用 Node.js 进程的当前工作目录作为基础目录。在大多数情况下,我们推荐手动设置一个基础目录,而不是依赖 Node.js 的当前工作目录。
1919

0 commit comments

Comments
 (0)