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:
committed by
Facebook GitHub Bot
parent
3ef1923b29
commit
ac9080abac
@@ -27,50 +27,50 @@ const uiSourceDirs = [
|
||||
'flipper-common',
|
||||
];
|
||||
|
||||
const stubModules = new Set([
|
||||
'fs',
|
||||
'path',
|
||||
'crypto',
|
||||
'process',
|
||||
'os',
|
||||
'util',
|
||||
'child_process',
|
||||
'assert',
|
||||
'adbkit', // TODO: factor out!
|
||||
'zlib',
|
||||
'events',
|
||||
'fs-extra',
|
||||
'archiver',
|
||||
'graceful-fs',
|
||||
'stream',
|
||||
'url',
|
||||
'node-fetch',
|
||||
'net',
|
||||
'vm',
|
||||
'debug',
|
||||
'lockfile',
|
||||
'constants',
|
||||
'https',
|
||||
'plugin-lib', // TODO: we only want the types?
|
||||
'flipper-plugin-lib',
|
||||
'tar',
|
||||
'minipass',
|
||||
'live-plugin-manager',
|
||||
'decompress-tar',
|
||||
'readable-stream',
|
||||
'archiver-utils',
|
||||
'metro',
|
||||
'decompress',
|
||||
'temp',
|
||||
'tmp',
|
||||
'promisify-child-process',
|
||||
'jsdom',
|
||||
'extract-zip',
|
||||
'yauzl',
|
||||
'fd-slicer',
|
||||
'envinfo',
|
||||
'bser',
|
||||
'fb-watchman',
|
||||
const stubModules = new Set<string>([
|
||||
// 'fs',
|
||||
// 'path',
|
||||
// 'crypto',
|
||||
// 'process',
|
||||
// 'os',
|
||||
// 'util',
|
||||
// 'child_process',
|
||||
// 'assert',
|
||||
// 'adbkit', // TODO: factor out!
|
||||
// 'zlib',
|
||||
// 'events',
|
||||
// 'fs-extra',
|
||||
// 'archiver',
|
||||
// 'graceful-fs',
|
||||
// 'stream',
|
||||
// 'url',
|
||||
// 'node-fetch',
|
||||
// 'net',
|
||||
// 'vm',
|
||||
// 'debug',
|
||||
// 'lockfile',
|
||||
// 'constants',
|
||||
// 'https',
|
||||
// 'plugin-lib', // TODO: we only want the types?
|
||||
// 'flipper-plugin-lib',
|
||||
// 'tar',
|
||||
// 'minipass',
|
||||
// 'live-plugin-manager',
|
||||
// 'decompress-tar',
|
||||
// 'readable-stream',
|
||||
// 'archiver-utils',
|
||||
// 'metro',
|
||||
// 'decompress',
|
||||
// 'temp',
|
||||
// 'tmp',
|
||||
// 'promisify-child-process',
|
||||
// 'jsdom',
|
||||
// 'extract-zip',
|
||||
// 'yauzl',
|
||||
// 'fd-slicer',
|
||||
// 'envinfo',
|
||||
// 'bser',
|
||||
// 'fb-watchman',
|
||||
// TODO fix me
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user