@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
16 lines (15 loc) • 565 B
TypeScript
/**
* Electron Preload Script
*
* This script runs in a privileged context before the renderer process loads.
* It exposes a safe API to the renderer via contextBridge.
*
* SECURITY: This script acts as a bridge between the main process (Node.js)
* and the renderer process (web). It carefully validates all operations
* before allowing them.
*
* NOTE: This file is compiled separately with contextIsolation support.
* It uses CommonJS (require) because Electron's preload scripts don't
* support ESM in the same way as the main process.
*/
export {};