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
437 changes: 194 additions & 243 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 1 addition & 1 deletion website/docs/en/blog/announcing-1-0-alpha.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ For Rsbuild users, please wait for the release of Rsbuild 1.0 alpha version (exp

### resolve.tsConfigPath

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

```diff title="rspack.config.mjs"
export default {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/config/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Tabs, Tab } from '@theme';

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

`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).
`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).

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.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/tech/preact.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
};
```

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

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

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/plugins/webpack/split-chunks-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ import { value2 } from 'shared';
value2;
```

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.
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.

```
chunk foo, chunk bar
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion website/docs/zh/api/runtime-api/module-methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {
function import(path: string): Promise;
```

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

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

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/blog/announcing-1-0-alpha.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pnpm add -D --save-exact @rspack/core@alpha @rspack/cli@alpha

### resolve.tsConfigPath

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

```diff title="rspack.config.mjs"
export default {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/config/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Tabs, Tab } from '@theme';

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/tech/preact.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
};
```

关于配置项的更多信息请参考 [内置 swc-loader](guide/features/builtin-swc-loader)。
关于配置项的更多信息请参考 [内置 swc-loader](/guide/features/builtin-swc-loader)。

完整示例可参考:[examples/preact](https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/preact)

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/plugins/webpack/split-chunks-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ import { value2 } from 'shared';
value2;
```

默认的策略中 shared 模块由于同时出现在 3 个 chunk 中,如果它满足了[最小拆分体积](plugins/webpack/split-chunks-plugin#splitchunksminsize),那么 shared 本该被抽离到一个单独 chunk 中。
默认的策略中 shared 模块由于同时出现在 3 个 chunk 中,如果它满足了[最小拆分体积](/plugins/webpack/split-chunks-plugin#splitchunksminsize),那么 shared 本该被抽离到一个单独 chunk 中。

```
chunk foo, chunk bar
Expand Down
8 changes: 4 additions & 4 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rsbuild/plugin-sass": "^1.3.2",
"@rspress/plugin-algolia": "2.0.0-beta.12",
"@rspress/plugin-llms": "2.0.0-beta.12",
"@rspress/plugin-rss": "2.0.0-beta.12",
"@rspress/plugin-algolia": "2.0.0-beta.19",
"@rspress/plugin-llms": "2.0.0-beta.19",
"@rspress/plugin-rss": "2.0.0-beta.19",
"@shikijs/transformers": "^3.7.0",
"@types/node": "^20.19.0",
"@types/react": "^19.1.7",
Expand All @@ -42,7 +42,7 @@
"prettier": "3.6.2",
"rsbuild-plugin-google-analytics": "1.0.3",
"rsbuild-plugin-open-graph": "1.0.2",
"rspress": "2.0.0-beta.12",
"rspress": "2.0.0-beta.19",
"rspress-plugin-font-open-sans": "1.0.0",
"rspress-plugin-sitemap": "^1.2.0",
"typescript": "^5.8.3"
Expand Down
Loading