.agents/skills/rstack-eco-ci-debug/references/rsbuild-config-debug.md
Use this tool only when the failure hypothesis depends on the actual Rsbuild/Rspack configuration used by the downstream case.
Run this tool when any of these are true:
DEBUG=rsbuild.Do not run this tool just because the suite is Rsbuild-based. Use it when config evidence can change the attribution.
Identify the narrowest downstream fixture or package that contains the failing test.
Run its build command with Rsbuild debug enabled:
DEBUG=rsbuild npm run build
Use the package manager and script that the downstream repo actually uses, such as DEBUG=rsbuild pnpm build, DEBUG=rsbuild pnpm test <case>, or the fixture-specific build command.
Inspect generated config files under dist/.rsbuild/, commonly:
dist/.rsbuild/rsbuild.config.mjs
dist/.rsbuild/rspack.config.web.mjs
dist/.rsbuild/rspack.config.node.mjs
Search the generated configs for the option, plugin, loader, target, mode, or environment that links the PR diff to the failing case.
Compare the active config with the current PR diff and the failure log.
Config check: <active | inactive | inconclusive>
Command: <DEBUG=rsbuild command>
Generated config files: <paths>
Relevant config: <short summary>
Attribution impact: <supports candidate | weakens candidate | rules out candidate | inconclusive>