// NODE_PATH doesn't work in electron let addon = {}; try { // Load the RTE runtime native library. // eslint-disable-next-line @typescript-eslint/no-var-requires addon = require('librte_runtime_nodejs'); } catch (e) { // This condition should not happen. // // if ((globalThis as any).RteRuntimeS) { // .... // } console.warn('Could not load librte_runtime_nodejs module.'); } export default addon as any;