tiny-electron-essentials
Version:
A lightweight and modular utility library for Electron apps, offering simplified window management, tray support, IPC channels, and custom frameless window styling.
33 lines (28 loc) • 1.27 kB
JavaScript
;
const errorMessage =
'[tiny-electron-essentials] This module must not be imported directly.\n' +
'Please import from one of the following entry points instead:\n' +
" → 'tiny-electron-essentials/preload'\n" +
" → 'tiny-electron-essentials/main'\n" +
" → 'tiny-electron-essentials/global'\n\n" +
"Direct imports like `import 'tiny-electron-essentials'` or `import something from 'tiny-electron-essentials'` are not supported.\n" +
'This separation is necessary to avoid conflicts between Electron contexts (main, preload, renderer).';
// Side effect: always throw when imported
throw new Error(errorMessage);
/**
* [tiny-electron-essentials] This module must not be imported directly.
*
* Please import from one of the following entry points instead:
* → 'tiny-electron-essentials/preload'
* → 'tiny-electron-essentials/main'
* → 'tiny-electron-essentials/global'
*
* Direct imports like `import 'tiny-electron-essentials'` or `import something from 'tiny-electron-essentials'` are not supported.
* This separation is necessary to avoid conflicts between Electron contexts (main, preload, renderer).
*
* @returns {never}
*/
function index () {
throw new Error(errorMessage);
}
module.exports = index;