Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.13 KB

File metadata and controls

57 lines (41 loc) · 1.13 KB
sidebar_position 7
slug /api/plugins/@docusaurus/plugin-rsdoctor

📦 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 {#installation}

npm install --save @docusaurus/plugin-rsdoctor

Configuration {#configuration}

Accepted fields:

<APITable>
Name Type Default Description
rsdoctorOptions object {} The Rsdoctor bundler plugin options, forwarded as is
</APITable>

Example configuration {#ex-config}

You can configure this plugin through plugin options.

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