For AI agents: the complete documentation index is available at https://rsdoctor.rs/llms.txt, the full documentation bundle is available at https://rsdoctor.rs/llms-full.txt, and this page is available as Markdown at https://rsdoctor.rs/config/options/multiCompiler.md.
close
  • English
  • multiCompiler

    • Type: boolean | { group?: string; ignoreChildCompilers?: string[] }
    • Default: true

    RsdoctorRspackPlugin automatically detects compilers created during the same startup, creates isolated analysis data for each compiler, and adds a compiler selector to the report. Rsbuild environments use their environment names, such as web and node.

    The default compiler keeps the existing .rsdoctor output path. Additional compilers are written to .rsdoctor/compilers/<compilerName>.

    Set this option to false when the same process creates unrelated compilers together. This also disables child compiler tracking. You can explicitly group plugin instances:

    new RsdoctorRspackPlugin({
      multiCompiler: { group: 'ssr' },
    });

    Use ignoreChildCompilers to skip reports for child compilers by name. Names are matched exactly against the child compiler name and the name provided by its parent. Rsdoctor already skips HtmlRspackCompiler and mini-css-extract-plugin by default.

    new RsdoctorRspackPlugin({
      multiCompiler: {
        ignoreChildCompilers: ['vanilla-extract-compiler'],
      },
    });