English | Portuguese | 简体中文
electron-rspack is a high-performance Electron build tool powered by Rspack. The easiest way to 10x the bundling speed of an Electron app on Webpack.
electron-rspack offers the following features:
-
Electron-Optimized: Built specifically for Electron applications, with separate configurations for main and renderer processes.
-
Powered by Rspack: Leverages the high-performance Rust-based Rspack bundler for blazing fast builds.
-
Zero Configuration: Start building your Electron application with minimal setup required.
-
TypeScript Support: First-class support for TypeScript in both main and renderer processes.
-
Hot Module Replacement: Fast development workflow with HMR support for the renderer process.
-
Production Ready: Optimized production builds with proper code splitting and minification.
To get started with electron-rspack, see the Quick Start.
npm create electron-rspack@latest
The following diagram illustrates the relationship between Electron-Rspack and other tools in the ecosystem:
- Rspack: A fast Rust-based web bundler.
- Rspress: A fast static site generator based on Electron-Rspack.
- Rsdoctor: A one-stop build analyzer for Rspack and webpack.
- Rslib: The library build tool powered by Electron-Rspack.
- Modern.js: A progressive React framework based on Electron-Rspack.
- awesome-rspack: A curated list of awesome things related to Rspack and Electron-Rspack.
- rspack-examples: Examples for Rspack, Electron-Rspack, Rspress and Rsdoctor.
- storybook-rsbuild: Storybook builder powered by Electron-Rspack.
- rsbuild-plugin-template:Use this template to create your own Electron-Rspack plugin.
- rstack-design-resources:Design resources for Rspack, Electron-Rspack, Rspress and Rsdoctor.
New contributors welcome!
Please read the Contributing Guide.
|
|
---|---|
|
|
|
This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of Conduct for more details.
Come and chat with us on Discord! The Rspack / Electron-Rspack team and users are active there, and we're always looking for contributions.
Electron-Rspack uses Web Infra QoS to observe the trend of key metrics, such as bundle size, compile speed and install size.
Some of the implementations of Electron-Rspack have drawn inspiration from outstanding projects in the community. We would like to express our gratitude to them:
- The implementation of some plugins is referenced from create-react-app.
- Some utility functions are referenced from html-webpack-plugin.
- The design of some APIs is referenced from vite.
This Electron-Rspack website is powered by Netlify.
Electron-Rspack is licensed under the MIT License.