Skip to content

Commit

Permalink
fix: warning position
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Mar 28, 2024
1 parent cf43357 commit 63aee99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/en/api/node-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 63aee99

Please sign in to comment.