![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@electron-forge/maker-base
Advanced tools
@electron-forge/maker-base is a base class for creating makers in Electron Forge, which are responsible for packaging Electron applications into distributable formats.
Creating a Custom Maker
This code demonstrates how to create a custom maker by extending the MakerBase class. The custom maker can implement its own logic for packaging an Electron application.
const { MakerBase } = require('@electron-forge/maker-base');
class MyCustomMaker extends MakerBase {
constructor() {
super();
this.name = 'my-custom-maker';
}
async make({ dir, appName, targetPlatform, targetArch }) {
console.log(`Making ${appName} for ${targetPlatform} on ${targetArch}`);
// Custom packaging logic here
}
}
module.exports = MyCustomMaker;
electron-packager is a tool for packaging Electron applications. It provides a straightforward way to create distributable versions of your app. Unlike @electron-forge/maker-base, which is a base class for creating custom makers, electron-packager is a complete solution for packaging.
electron-builder is a comprehensive solution for building and packaging Electron applications. It supports a wide range of target formats and platforms. Compared to @electron-forge/maker-base, which requires custom implementation for each maker, electron-builder offers a more out-of-the-box experience with extensive configuration options.
6.0.0-beta.45 (2019-09-05)
FAQs
Base maker for Electron Forge
The npm package @electron-forge/maker-base receives a total of 185,011 weekly downloads. As such, @electron-forge/maker-base popularity was classified as popular.
We found that @electron-forge/maker-base demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.