We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af3f4e8 + 8b9b00c commit 2314dadCopy full SHA for 2314dad
1 file changed
src/process.ts
@@ -12,7 +12,8 @@ export interface IProcess {
12
};
13
}
14
15
-export function createProcess(p: IProcess = process): IProcess {
+export function createProcess(): IProcess {
16
+ let p: IProcess = typeof process !== 'undefined' && process;
17
if (!p) {
18
try {
19
p = require('process');
0 commit comments