Back to Docusaurus

📦 plugin-rsdoctor

website/versioned_docs/version-3.10.0/api/plugins/plugin-rsdoctor.mdx

3.10.11.0 KB
Original Source

📦 plugin-rsdoctor

import APITable from '@site/src/components/APITable';

A Rsdoctor plugin can help you troubleshoot the bundling phase of your Docusaurus site, supporting both Webpack and Rspack.

:::tip

Use it to figure out which plugin or loader is slowing down the bundler, and focus your efforts on optimizing the bottleneck.

:::

Installation

bash
npm install --save @docusaurus/plugin-rsdoctor

Configuration

Accepted fields:

mdx-code-block
<APITable>
NameTypeDefaultDescription
rsdoctorOptionsobject{}The Rsdoctor bundler plugin options, forwarded as is
mdx-code-block
</APITable>

Example configuration

You can configure this plugin through plugin options.

js
export default {
  plugins: [
    [
      'rsdoctor',
      {
        rsdoctorOptions: {
          mode: 'lite',
        },
      },
    ],
  ],
};