Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

electron-forge-plugin-rsbuild

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-forge-plugin-rsbuild

Rsbuild plugin for Electron Forge, lets you use Rsbuild directly in your tooling

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

electron-forge-plugin-rsbuild

This plugin makes it easy to set up standard rsbuild tooling to compile both your main process code and your renderer process code, with built-in support for Hot Module Replacement (HMR) in the renderer process and support for multiple renderers.

// forge.config.js

module.exports = {
  plugins: [
    {
      name: 'electron-forge-plugin-rsbuild',
      config: {
        // `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
        // If you are familiar with Rebuild configuration, it will look really familiar.
        build: [
          {
            entry: 'src/main.js',
            config: 'rsbuild.main.config.mjs',
            target: 'main'
          },
          {
            entry: 'src/preload.js',
            config: 'rsbuild.preload.config.mjs',
            target: 'preload'
          }
        ],
        renderer: [
          {
            name: 'main_window',
            config: 'rsbuild.renderer.config.mjs'
          }
        ]
      }
    }
  ]
};

Keywords

rsbuild

FAQs

Package last updated on 24 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts