# web-infra-dev/rspack

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/web-infra-dev-rspack).**

12,761 stars · 807 forks · Rust · MIT

## Links

- GitHub: https://github.com/web-infra-dev/rspack
- Homepage: https://rspack.rs
- awesome-repositories: https://awesome-repositories.com/repository/web-infra-dev-rspack.md

## Topics

`build-tool` `bundler` `compiler` `esm` `javascript` `jsx` `loaders` `module-bundler` `rspack` `rstack` `rust` `typescript` `web` `web-performance` `webpack`

## Description

Rspack is a high-performance web bundler written in Rust that packages JavaScript and TypeScript for web applications. It functions as an incremental build engine and a tree-shaking asset optimizer designed to reduce build times and minimize final bundle sizes for web delivery.

The project is built for compatibility with the webpack ecosystem, implementing a compatible API that allows existing plugins and configurations to work without modification. This enables the integration of community loaders and plugins while leveraging a Rust-based compilation engine.

The tool covers a broad range of build capabilities, including hot module replacement for instant code updates in the browser and module federation for sharing dependencies between separate builds at runtime. Production optimization is handled through dead code elimination and asset minification.

## Tags

### Development Tools & Productivity

- [Asset Bundling](https://awesome-repositories.com/f/development-tools-productivity/build-tooling/build-performance-optimization/build-optimization-tools/bundle-optimizers/asset-bundling.md) — Provides a high-performance engine for packaging JavaScript and TypeScript into optimized production bundles. ([source](https://github.com/web-infra-dev/rspack/blob/main/README.zh-CN.md))
- [Build Plugin Integrators](https://awesome-repositories.com/f/development-tools-productivity/build-plugin-integrators.md) — Integrates external loaders and plugins from the webpack ecosystem to extend build functionality. ([source](https://github.com/web-infra-dev/rspack/blob/main/README.zh-CN.md))
- [Bundle Optimizers](https://awesome-repositories.com/f/development-tools-productivity/build-tooling/build-performance-optimization/build-optimization-tools/bundle-optimizers.md) — Employs dead code elimination and asset minification to reduce final bundle sizes for production. ([source](https://github.com/web-infra-dev/rspack/blob/main/README.zh-CN.md))
- [Dead Code Elimination](https://awesome-repositories.com/f/development-tools-productivity/dead-code-elimination.md) — Implements static analysis to identify and remove unused modules and functions from production bundles.
- [Hot-Reloading Systems](https://awesome-repositories.com/f/development-tools-productivity/hot-reloading-systems.md) — Implements a fast incremental compilation system to update modified code in the browser without full page refreshes. ([source](https://github.com/web-infra-dev/rspack/blob/main/README.zh-CN.md))
- [Incremental Build Engines](https://awesome-repositories.com/f/development-tools-productivity/incremental-build-engines.md) — Uses an incremental build engine to track modified files and selectively re-bundle only affected modules.
- [JavaScript and TypeScript Build Systems](https://awesome-repositories.com/f/development-tools-productivity/javascript-and-typescript-build-systems.md) — Packages JavaScript and TypeScript into optimized assets for fast web delivery. ([source](https://github.com/web-infra-dev/rspack#readme))
- [Web Bundlers](https://awesome-repositories.com/f/development-tools-productivity/web-bundlers.md) — Functions as a high-performance web bundler written in Rust for packaging JavaScript and TypeScript assets.
- [Hot Module Replacement](https://awesome-repositories.com/f/development-tools-productivity/platforms-runtimes-language-services/hot-module-replacement.md) — Updates specific modules in a running application incrementally to reflect changes without reloading the page. ([source](https://github.com/web-infra-dev/rspack/blob/main/README.md))

### Programming Languages & Runtimes

- [Rust-Implemented Tooling](https://awesome-repositories.com/f/programming-languages-runtimes/rust-implemented-tooling.md) — Provides a high-performance build system implemented in Rust to accelerate the parsing and transformation of web assets.

### DevOps & Infrastructure

- [Build-Time Incremental Bundling](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-tooling/code-transformation-engines/incremental-compilation-strategies/build-time-incremental-bundling.md) — Tracks modified files and re-bundles only affected modules to significantly reduce the time between saving and refreshing.
- [Asset Minification](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-optimization/asset-minification.md) — Provides automated compression of JavaScript and CSS assets to reduce total byte size for browser delivery.
- [Production Asset Optimizations](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-optimization/production-asset-optimizations.md) — Optimizes static assets through minification and compression to decrease final bundle size and improve load times. ([source](https://github.com/web-infra-dev/rspack#readme))

### Software Engineering & Architecture

- [Plugin Integrations](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/extensibility/third-party-plugins/plugin-integrations.md) — Enables the use of existing webpack ecosystem plugins and loaders to transform and optimize source code. ([source](https://github.com/web-infra-dev/rspack#readme))
- [Bundler](https://awesome-repositories.com/f/software-engineering-architecture/plugin-version-management/plugin-compatibility-layers/bundler.md) — Implements a compatible API that allows existing webpack loaders and plugins to work without configuration rewrites.

### Web Development

- [Compatibility Layers](https://awesome-repositories.com/f/web-development/build-tooling/plugin-ecosystems/compatibility-layers.md) — Provides a compatible API that allows existing webpack loaders and plugins to work without modification.
- [Ecosystem Compatibility Layers](https://awesome-repositories.com/f/web-development/ecosystem-compatibility-layers.md) — Implements a webpack-compatible API to ensure existing configurations and plugins work without modification.
- [Module Federation](https://awesome-repositories.com/f/web-development/module-federation.md) — Enables the sharing of dependencies between separate builds at runtime to coordinate distributed web applications.
- [Tree-Shaking Optimizers](https://awesome-repositories.com/f/web-development/tree-shaking-optimizers.md) — Provides build-time component pruning through tree-shaking to remove unused code from the production bundle.

### Part of an Awesome List

- [Module Federation](https://awesome-repositories.com/f/awesome-lists/devops/module-federation.md) — Implements a runtime that shares dependencies between separate builds to enable distributed application architectures.

### Data & Databases

- [Incremental Module Refreshing](https://awesome-repositories.com/f/data-databases/data-modification-apis/incremental-syncing/incremental-module-refreshing.md) — Updates modified files in the browser via a fast compilation mechanism to accelerate the development feedback loop. ([source](https://github.com/web-infra-dev/rspack#readme))
