Remove 'process' usage

Summary: Removed process, adbkit and electron usages that were still remaining. Verified changes by disabling the built-in module stubbing (will be cleaned up further later in this stack).

Reviewed By: aigoncharov

Differential Revision: D33019083

fbshipit-source-id: 8bfce31f4b5ed349cb4fd86d34c9b41b9b8b8360
This commit is contained in:
Michel Weststrate
2021-12-13 05:46:42 -08:00
committed by Facebook GitHub Bot
parent 3ef1923b29
commit ac9080abac
7 changed files with 62 additions and 52 deletions

View File

@@ -27,6 +27,7 @@ import {setupMenuBar} from './setupMenuBar';
import {FlipperServer, FlipperServerConfig} from 'flipper-common';
import type {Icon, RenderHost} from 'flipper-ui-core';
import {getLocalIconUrl} from '../utils/icons';
import {getCPUUsage} from 'process';
export function initializeElectron(
flipperServer: FlipperServer,
@@ -202,6 +203,9 @@ export function initializeElectron(
}
delete global.electronRequire.cache[resolvedPath];
},
getPercentCPUUsage() {
return getCPUUsage().percentCPUUsage;
},
} as RenderHost;
setupMenuBar();