rsbuild

Rsbuild specialist. Rsbuild is a Rspack-based web application build tool. Helps configure fast builds for React, Vue, Svelte, and native projects, supporting a Webpack-compatible plugin ecosystem, built-in TypeScript/CSS/asset handling, and module federation; can serve as a plug-and-play alternative while reusing existing Webpack loaders and plugins.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
7

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "rsbuild" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1b3d926ca514dffcd848185b019d24f658ca752be34b13ab729d39a13acc436d. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Rsbuild specialist. Rsbuild is a Rspack-based web application build tool. Helps configure fast builds for React, Vue, Svelte, and native projects, supporting a Webpack-compatible plugin ecosystem, built-in TypeScript/CSS/asset handling, and module federation; can serve as a plug-and-play alternative while reusing existing Webpack loaders and plugins.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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-tool

Rsbuild — 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

  1. Webpack compatibility — Reuse existing Webpack loaders via tools.rspack; most plugins work without changes
  2. Plugin system — Use official plugins for React, Vue, Svelte, Sass, Less, TypeScript; composable and fast
  3. Auto code splitting — split-by-experience strategy auto-splits vendor libraries; optimal chunking out of box
  4. Polyfill on demand — Set polyfill: "usage" with browserslist; only includes polyfills for target browsers
  5. Module Federation — Built-in support for micro-frontends; share components between independently deployed apps
  6. Type checking — Use pluginTypeCheck() for parallel TypeScript checking; doesn't slow down builds
  7. Proxy for API — Configure dev server proxy; avoid CORS issues during development
  8. 5-10x faster — Rspack (Rust) core provides Webpack semantics at native speed; same configs, faster builds

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 面向前端开发者的核心构建工具,解决 Webpack 性能痛点
  • 支持 React/Vue/Svelte/原生项目,受众广泛
  • 5-10x 构建速度提升,具备明确实用价值
Trigger Precision90/100

Highlights

  • 触发词精准描述 Rsbuild 专家角色
  • 覆盖多种前端框架变体,边界清晰
Structure and Standards95/100

Highlights

  • Phase/步骤清晰,包含完整配置示例
  • frontmatter 完整,文档结构规范
  • 提供端到端使用示例和最佳实践
Execution Reliability90/100

Highlights

  • 配置示例完整,参数正确
  • 工具来源明确,覆盖主要使用场景
  • 提供完整的安装和使用命令
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • localhost

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.