rsbuild
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "rsbuild":https://skillpi.com/zh/skills/deepskill-1b3d926ca514dffcd848185b019d24f658ca752be34b13ab729d39a13acc436d。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Rsbuild 专家,Rsbuild 是基于 Rspack 的 Web 应用构建工具。帮助为 React、Vue、Svelte 和原生项目配置快速构建,支持与 Webpack 兼容的插件生态、内置 TypeScript/CSS/资源支持和模块联邦,可作为即插即用的替代方案并复用现有的 Webpack 加载器和插件。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: rsbuild
description: >-
You are an expert in Rsbuild, the Rspack-based build tool for web
applications. You help developers configure fast builds for React, Vue,
Svelte, and vanilla projects with Webpack-compatible plugin ecosystem,
built-in TypeScript/CSS/asset support, module federation, and 5-10x faster
builds than Webpack — providing a drop-in replacement that reuses existing
Webpack loaders and plugins.
license: Apache-2.0
compatibility: ''
metadata:
author: terminal-skills
version: 1.0.0
category: Developer Tools
tags:
- bundler
- rust
- rspack
- fast
- webpack-compatible
- build-toolRsbuild — Rust-Powered Build Tool
You are an expert in Rsbuild, the Rspack-based build tool for web applications. You help developers configure fast builds for React, Vue, Svelte, and vanilla projects with Webpack-compatible plugin ecosystem, built-in TypeScript/CSS/asset support, module federation, and 5-10x faster builds than Webpack — providing a drop-in replacement that reuses existing Webpack loaders and plugins.
Core Capabilities
Configuration
// rsbuild.config.ts
import { defineConfig } from "@rsbuild/core";
import { pluginReact } from "@rsbuild/plugin-react";
import { pluginSass } from "@rsbuild/plugin-sass";
import { pluginTypeCheck } from "@rsbuild/plugin-type-check";
export default defineConfig({
plugins: [
pluginReact(),
pluginSass(),
pluginTypeCheck(),
],
source: {
entry: { index: "./src/index.tsx" },
alias: { "@": "./src" },
},
output: {
target: "web",
distPath: { root: "dist" },
polyfill: "usage", // Auto-polyfill based on browserslist
cleanDistPath: true,
assetPrefix: process.env.CDN_URL || "/",
},
html: {
title: "My App",
favicon: "./src/assets/favicon.ico",
template: "./public/index.html",
},
server: {
port: 3000,
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
},
},
},
performance: {
chunkSplit: {
strategy: "split-by-experience", // Auto-split React, lodash, etc.
},
bundleAnalyze: process.env.ANALYZE === "true"
? { analyzerMode: "static" }
: undefined,
},
tools: {
// Use existing Webpack loaders
rspack: (config) => {
config.module?.rules?.push({
test: /\.graphql$/,
use: "graphql-tag/loader",
});
},
},
});
Usage
# Create new project
npm create rsbuild@latest
# Development
npx rsbuild dev # HMR dev server
# Production build
npx rsbuild build # Optimized production bundle
# Preview
npx rsbuild preview # Serve production build locally
Installation
npm install -D @rsbuild/core @rsbuild/plugin-react
Best Practices
- Webpack compatibility — Reuse existing Webpack loaders via
tools.rspack; most plugins work without changes - Plugin system — Use official plugins for React, Vue, Svelte, Sass, Less, TypeScript; composable and fast
- Auto code splitting —
split-by-experiencestrategy auto-splits vendor libraries; optimal chunking out of box - Polyfill on demand — Set
polyfill: "usage"with browserslist; only includes polyfills for target browsers - Module Federation — Built-in support for micro-frontends; share components between independently deployed apps
- Type checking — Use
pluginTypeCheck()for parallel TypeScript checking; doesn't slow down builds - Proxy for API — Configure dev server proxy; avoid CORS issues during development
- 5-10x faster — Rspack (Rust) core provides Webpack semantics at native speed; same configs, faster builds
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 面向前端开发者的核心构建工具,解决 Webpack 性能痛点
- 支持 React/Vue/Svelte/原生项目,受众广泛
- 5-10x 构建速度提升,具备明确实用价值
亮点
- 触发词精准描述 Rsbuild 专家角色
- 覆盖多种前端框架变体,边界清晰
亮点
- Phase/步骤清晰,包含完整配置示例
- frontmatter 完整,文档结构规范
- 提供端到端使用示例和最佳实践
亮点
- 配置示例完整,参数正确
- 工具来源明确,覆盖主要使用场景
- 提供完整的安装和使用命令
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 98, 101, 104, 110 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- localhost
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。