diff --git a/website/docs/en/api/node-api.mdx b/website/docs/en/api/node-api.mdx index 994baa01dec6..51379884d385 100644 --- a/website/docs/en/api/node-api.mdx +++ b/website/docs/en/api/node-api.mdx @@ -9,8 +9,8 @@ Rspack provides a Node.js API which can be used directly in Node.js runtime. The Node.js API is useful in scenarios in which you need to customize the build or development process since all the reporting and error handling must be done manually and webpack only does the compiling part. For this reason the [`stats`](/config/stats) configuration options will not have any effect in the `rspack()` call. -:::warning Compatible with Webpack Node.js API -`@rspack/core` is designed based on the Webpack Node.js API, with the goal of achieving the same functional behavior as Webpack. +:::warning Comparison with Webpack Node.js API +`@rspack/core` is meticulously designed to mirror the Webpack Node.js API, aiming to provide an equivalent set of features and a similar user experience. Despite these intentions, minor differences may still be present, such as slight discrepancies in the naming of certain types and the absence or variations in specific configuration options. ::: ## Installation diff --git a/website/docs/zh/api/node-api.mdx b/website/docs/zh/api/node-api.mdx index 81825ce63b89..2c2e37df8060 100644 --- a/website/docs/zh/api/node-api.mdx +++ b/website/docs/zh/api/node-api.mdx @@ -9,8 +9,8 @@ Rspack 提供了 Node.js API,可以在 Node.js 运行时下直接使用。 当你需要自定义构建或开发流程时,Node.js API 非常有用,因为此时所有的报告和错误处理都必须自行实现,Rspack 仅仅负责编译的部分。所以 [`stats`](/config/stats) 配置选项不会在 `rspack()` 调用中生效。 -:::warning 和 Webpack Node.js API 的兼容性 -`@rspack/core` 是根据 Webpack Node.js API 设计的,旨在实现与 Webpack 相同的功能表现和行为。 +:::warning 与 Webpack Node.js API 的差异 +`@rspack/core`是完全基于 Webpack Node.js API 设计的,以提供一致功能和使用体验。尽管如此,仍会存在一些细微细微的差异,包括少数类型名称的不同和某些配置选项的缺失或差异性。 ::: ## 安装