• English
  • background

    Rselectron

    Electron tooling on Rspack

    Develop and source-build Electron apps with Rsbuild and Rspack.

    GitHubGitHub
    Fast builds

    Fast builds

    Rust-based parallel compilation keeps rebuilds short.

    Fast HMR

    Fast HMR

    Incremental builds keep renderer hot updates quick.

    Framework agnostic

    Framework agnostic

    Use whatever UI framework your Rsbuild setup supports.

    Build speed

    Numbers from the Rspack vs Vite vs webpack comparison (seconds).

    Rspack

    1.36s dev
    3.35s build
    160ms hmr

    Vite

    6.50s dev
    1.98s build
    130ms hmr

    webpack

    21.40s dev
    28.10s build
    2.78s hmr

    What you get from Rspack

    Rselectron sits on Rsbuild/Rspack, so these bundler capabilities come with it.

    0

    Code Splitting

    Split code into smaller bundles for on-demand loading.

    1

    Tree Shaking

    Remove unused code from the final bundles.

    2

    Plugins

    Rich plugin hooks; compatible with most webpack plugins.

    3

    Multipage

    Render multiple pages through one Electron renderer role.

    0

    Asset Management

    Handle and optimize images, fonts, and stylesheets.

    1

    Loaders

    Compatible with webpack loaders from the existing ecosystem.

    2

    HMR

    Update modules at runtime without a full page refresh.

    3

    Dev Server

    Local development server for the renderer.

    0

    Parallel Builds

    Run multiple builds in parallel for different targets or environments.

    1

    SWC

    Rust-based SWC for JavaScript and TypeScript transpilation.

    2

    Lightning CSS

    Lightning CSS for CSS processing and optimization.

    3

    JavaScript API

    Programmatic build API for custom pipelines.