rspack
Bundle JavaScript/TypeScript applications with Rspack — Rust-based webpack replacement that's 5-10x faster. Use when someone asks to "speed up webpack", "Rspack", "fast bundler", "Rust bundler for JavaScript", "replace webpack", "migrate from webpack", or "faster build times". Covers webpack compatibility, configuration, loaders, plugins, and migration from webpack.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o rspack.zip https://jpskill.com/download/15353.zip && unzip -o rspack.zip && rm rspack.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/15353.zip -OutFile "$d\rspack.zip"; Expand-Archive "$d\rspack.zip" -DestinationPath $d -Force; ri "$d\rspack.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
rspack.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
rspackフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
Rspack
Overview
Rspack is a Rust-based JavaScript bundler fully compatible with webpack — same config format, same loaders, same plugins, 5-10x faster builds. Created by ByteDance, it's a drop-in webpack replacement: rename your config file, install Rspack, and your existing webpack project builds in a fraction of the time. No config rewrite, no loader migration, no plugin hunting.
When to Use
- Webpack builds taking too long (>30 seconds)
- Want faster builds without rewriting config (unlike Vite migration)
- Large enterprise projects with heavy webpack configs
- Need webpack compatibility (loaders, plugins, config) with better performance
- Migration from Create React App or webpack-based setups
Instructions
New Project
npm create rspack@latest my-app
cd my-app
npm start
Migrate from Webpack
# Install Rspack
npm install -D @rspack/core @rspack/cli
# Remove webpack
npm uninstall webpack webpack-cli webpack-dev-server
// rspack.config.js — Almost identical to webpack.config.js
const { defineConfig } = require("@rspack/cli");
const { HtmlRspackPlugin } = require("@rspack/core");
module.exports = defineConfig({
entry: "./src/index.tsx",
output: {
path: "./dist",
filename: "[name].[contenthash].js",
clean: true,
},
resolve: {
extensions: [".ts", ".tsx", ".js", ".jsx"],
alias: { "@": "./src" },
},
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: {
loader: "builtin:swc-loader", // Built-in SWC — no babel needed
options: {
jsc: {
parser: { syntax: "typescript", tsx: true },
transform: { react: { runtime: "automatic" } },
},
},
},
},
{
test: /\.css$/,
type: "css", // Built-in CSS support
},
{
test: /\.module\.css$/,
type: "css/module", // CSS Modules built-in
},
{
test: /\.(png|jpg|svg|gif)$/,
type: "asset", // Built-in asset handling
},
],
},
plugins: [
new HtmlRspackPlugin({ template: "./index.html" }),
],
devServer: {
port: 3000,
hot: true,
},
});
Key Differences from Webpack
// What's built-in (no extra loaders/plugins needed):
// ✅ TypeScript/JSX via SWC — builtin:swc-loader
// ✅ CSS/CSS Modules — type: "css" / "css/module"
// ✅ Asset handling — type: "asset"
// ✅ HTML generation — HtmlRspackPlugin
// ✅ Code splitting — same as webpack
// ✅ Tree shaking — built-in
// ✅ Hot Module Replacement — built-in
// What still uses webpack loaders:
// ✅ sass-loader, less-loader — work as-is
// ✅ postcss-loader — works as-is
// ✅ Most webpack loaders — compatible
With React and Tailwind
// rspack.config.js — React + Tailwind CSS project
module.exports = {
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: {
loader: "builtin:swc-loader",
options: {
jsc: {
parser: { syntax: "typescript", tsx: true },
transform: { react: { runtime: "automatic" } },
},
},
},
},
{
test: /\.css$/,
use: ["postcss-loader"], // PostCSS processes Tailwind
type: "css",
},
],
},
};
Examples
Example 1: Migrate a webpack project to Rspack
User prompt: "Our webpack build takes 60 seconds. Speed it up without rewriting the config."
The agent will install Rspack, adapt the existing webpack.config.js (minimal changes), replace babel-loader with builtin:swc-loader, and benchmark the improvement.
Example 2: Set up a new React project with Rspack
User prompt: "Create a new React + TypeScript project with fast builds."
The agent will scaffold an Rspack project with SWC for TypeScript/JSX, CSS Modules, asset handling, and dev server with HMR.
Guidelines
- Drop-in webpack replacement — same config format, most loaders work
builtin:swc-loader— replaces babel-loader, 20x faster transpilationtype: "css"— no css-loader/style-loader neededtype: "asset"— no file-loader/url-loader needed- Most webpack plugins work — check @rspack/compat for compatibility layer
- HMR is built-in — faster than webpack's HMR
- Tree shaking built-in — no extra config needed
- 5-10x faster — Rust parallelism beats single-threaded JS
- Production-ready — used by ByteDance at scale
@rspack/cli— providesrspack serveandrspack buildcommands