Skip to content

Glossary: Desktop Apps with Electron and Tauri

CommonJS

Also written: CJS, .cjs, require

The older Node module style that uses `require()` and `module.exports`. Sandboxed preload scripts and the Forge config in an ES-module project must use it, so their files end in `.cjs`.

Where the book teaches it

Related terms

ES modulesPreload script