diff --git a/website/docs/en/api/node-api.mdx b/website/docs/en/api/node-api.mdx index 6b3ec35ebc3..4bc13d35bdb 100644 --- a/website/docs/en/api/node-api.mdx +++ b/website/docs/en/api/node-api.mdx @@ -5,14 +5,14 @@ import { ApiMeta, Stability } from '../../../components/ApiMeta.tsx'; # Node.js API -:::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. -::: - 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 configuration options will not have any effect in the webpack() 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. +::: + ## Installation To start using the Rsapck Node.js API, first install `@rspack/core` if you haven’t yet: