协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
rsbuild-best-practices【开发与工程】Configure, review, or troubleshoot Rsbuild applications, including build/dev commands, assets, type checking, and bundle optimization.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Apply these rules when writing or reviewing Rsbuild projects.
rsbuild.config.ts and defineConfigtools.rspack or tools.bundlerChain only when no first-class Rsbuild option existssource.entry values for multi-page applicationstsconfig.json path aliases firstrsbuild for local developmentrsbuild build for production buildrsbuild preview only for local production previewrsbuild inspect to inspect final Rsbuild/Rspack configs@rsbuild/plugin-type-check for integrated dev/build type checkstsc --noEmit/vue-tsc --noEmit as an explicit script stepimport() for non-critical code pathspublicpublic files by absolute URL path.map files to public servers/CDNs when production source maps are enabledDEBUG=rsbuild when diagnosing config resolution or plugin behaviordist/.rsbuild to confirm final config, not assumed config--cpu-prof) when JavaScript-side overhead is suspectedRSPACK_PROFILE=OVERVIEW and analyze trace output for compiler-phase bottlenecks