• Stars
    star
    9,468
  • Rank 3,765 (Top 0.08 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 2 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The fast Rust-based web bundler with webpack-compatible API ๐Ÿฆ€๏ธ
Rspack Banner

A fast Rust-based web bundler

discord channel npm version downloads license

English | ็ฎ€ไฝ“ไธญๆ–‡

โœจ Features

  • ๐Ÿš€ Fast Startup: Based on Rust, the build speed is extremely fast, bringing you the ultimate development experience.
  • โšก Lightning HMR: With a built-in incremental compilation mechanism, HMR is extremely fast and fully capable of developing large-scale projects.
  • ๐Ÿ“ฆ Webpack Interoperable: Compatible with the architecture and ecosystem of webpack, no need to build the ecosystem from scratch.
  • ๐ŸŽจ Batteries Included: Out-of-the-box support for TypeScript, JSX, CSS, CSS Modules, Sass, and more.
  • ๐Ÿ› ๏ธ Production Optimization: Various optimization strategies are built in by default, such as tree shaking, minification, etc.
  • ๐ŸŽฏ Framework Agnostic: Not bound to any frontend framework, ensuring enough flexibility.

Read Introduction for details.

Getting Started

Contribution

This project is new and under active development. Although Rspack can already successfully bundle real world projects, its APIs are not yet stable, and many Webpack plugin hooks have not been implemented yet. If you have feedback, questions, or bug reports, please create a GitHub issue. Any contributions are greatly appreciated!

Please read the contributing guide and let's build Rspack together.

Code of Conduct

This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of Conduct for more details.

Links

Name Description
Rspack website Official documentation for Rspack
Rspack website repo Repository of official documentation
rspack-sources Rusty webpack-sources port
rspack-migration-showcase Migration showcases for Rspack

Contributors

Benchmark

See Benchmark

Credits

Thanks to:

  • The webpack team and community for creating a great bundler and ecosystem from which we draw a lot of inspiration.
  • @sokra for the great work on the webpack project.
  • @ScriptedAlchemy for creating Module Federation and helping Rspack connect with the community.
  • The SWC project created by @kdy1, which powers Rspack's code parsing, transformation and minification.
  • The esbuild project created by @evanw, which inspired the concurrent architecture of Rspack.
  • The NAPI-RS project created by @Brooooooklyn, which powers Rspack's node-binding implementation.
  • The Parcel project created by @devongovett which is the pioneer of rust bundler and inspired Rspack's incremental rebuild design.
  • The Vite project created by Evan You which inspired Rspack's compatibility design of webpack's ecosystem.
  • The Rolldown project created by Rolldown team, which explores the possibility of making a performant bundler in Rust with Rollup-compatible API. It inspires the design principles of Rspack.
  • The html-webpack-plugin project created by @jantimon, @rspack/html-plugin is a fork of html-webpack-plugin to avoid some webpack API usage not supported in Rspack.
  • The Turbopack project which inspired the AST path logic of Rspack.
  • The react-refresh-webpack-plugin created by @pmmmwh, which inspires implement react refresh.

License

Rspack is MIT licensed.

More Repositories

1

modern.js

Modern.js is a web engineering system, including a web framework and a npm package solution.
TypeScript
4,421
star
2

garfish

A powerful micro front-end framework ๐Ÿšš
TypeScript
2,498
star
3

oxc

โš“ A suite of high-performance tools for JavaScript and TypeScript written in Rust.
Rust
1,902
star
4

rspress

๐Ÿฆ€๐Ÿ’จ A fast Rspack-based static site generator.
TypeScript
1,366
star
5

rsbuild

The Rspack-based build tool. It's fast, out-of-the-box and extensible.
TypeScript
1,241
star
6

rsdoctor

A one-stop build analyzer for Rspack and Webpack.
TypeScript
384
star
7

rslib

The Rsbuild powered package build tool.
TypeScript
340
star
8

midscene

An AI-powered automation SDK can control the page, perform assertions, and extract data in JSON format using natural language.
HTML
309
star
9

rspack-sources

Rusty webpack-sources port.
Rust
119
star
10

awesome-rspack

A curated list of awesome things related to Rspack, Rsbuild and Rspress
107
star
11

webpack-inspector

Devtool for webpack.
TypeScript
96
star
12

mdx-rs

Rust MDX compilation binding for Rspress
Rust
83
star
13

reduck

A Redux-based state management library
TypeScript
75
star
14

rspack-website

Website of Rspack
TypeScript
60
star
15

swc-plugins

SWC plugins and binding
Rust
55
star
16

blogs

Web Infra team working group
36
star
17

modern-js-examples

Examples for Modern.js web engineering system
30
star
18

unport

A Universal Port with strict type inference capability for cross-JSContext communication.
TypeScript
29
star
19

nodejs_resolver

Rust
27
star
20

codesmith

Micro generator for development life-cycle.
TypeScript
23
star
21

electron-sprout

A front-end friendly desktop framework based on Electron.
TypeScript
20
star
22

rspack-dev-guide

A guide to how Rspack works and how to contribute to it.
17
star
23

deep-dive-into-tla

Blog Post - Deep Dive into Top-level await
16
star
24

rspack-resolver

Rust Port of enhanced-resolve
Rust
14
star
25

napi-template

Template for generating rust-based native projects
JavaScript
13
star
26

bundler-benchmark

JavaScript
10
star
27

web-infra-QoS

Web Infra QoS
TypeScript
10
star
28

rspack-ecosystem-ci

Rspack Ecosystem CI
TypeScript
9
star
29

rspack-repro

A GitHub template for create reproduction with Rspack fastly.
JavaScript
9
star
30

rspack-ecosystem-benchmark

JavaScript
8
star
31

rspack-migration-showcase

migration showcase for rspack
TypeScript
8
star
32

midscene-example

Examples for midscene
TypeScript
8
star
33

nde

A tool to speed up the deployment of node.js project and reduce the size of deployment products.
TypeScript
8
star
34

libuild

The home for various projects about libuild
TypeScript
7
star
35

webinfra.org

HTML
7
star
36

.github

The profile of Web Infra organization.
6
star
37

actions

TypeScript
6
star
38

rfcs

RFC for changes to web-infra projects
3
star
39

with-rspack-demo

Demo application that bundle with rspack
CSS
2
star
40

modern-js-dev.github.io

modernjs.dev
HTML
2
star
41

rspack-demo

A demo for rspack bundler
JavaScript
2
star
42

rspack-compat

JavaScript
2
star
43

module-tools-examples

module-tools examples
TypeScript
1
star
44

clabot-config

1
star
45

rspack-dev-server

Dev server of rspack
JavaScript
1
star
46

media

media resources for Rspack
1
star