π¦ plugin-rsdoctor
A Rsdoctor plugin can help you troubleshoot the bundling phase of your Docusaurus site, supporting both Rspack and Webpack.
Rspack sites use Rsdoctor v2. Rsdoctor v2 doesn't support Webpack, so Webpack sites use Rsdoctor v1.
tip
Use it to figure out which plugin or loader is slowing down the bundler, and focus your efforts on optimizing the bottleneck.
Installationβ
- npm
- Yarn
- pnpm
- Bun
npm install --save @docusaurus/plugin-rsdoctor
yarn add @docusaurus/plugin-rsdoctor
pnpm add @docusaurus/plugin-rsdoctor
bun add @docusaurus/plugin-rsdoctor
Configurationβ
Accepted fields:
| Name | Type | Default | Description |
|---|---|---|---|
rsdoctorOptions | object | {} | The Rsdoctor bundler plugin options for Rspack or Webpack, forwarded as is |
Example configurationβ
You can configure this plugin through plugin options.
docusaurus.config.js
export default {
plugins: [
[
'rsdoctor',
{
rsdoctorOptions: {
features: ['loader', 'plugins'],
},
},
],
],
};