📦 plugin-rsdoctor
A Rsdoctor plugin can help you troubleshoot the bundling phase of your Docusaurus site, supporting both Webpack and Rspack.
提示
Use it to figure out which plugin or loader is slowing down the bundler, and focus your efforts on optimizing the bottleneck.
安装流程
- 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
配置
接受的字段:
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
rsdoctorOptions | object | {} | The Rsdoctor bundler plugin options, forwarded as is |
示例配置
你可以通过插件选项来配置这个插件。
docusaurus.config.js
export default {
plugins: [
[
'rsdoctor',
{
rsdoctorOptions: {
mode: 'lite',
},
},
],
],
};