From 8027755210d2fc41128c45fab8b6fe7de399a62e Mon Sep 17 00:00:00 2001 From: Ritesh Kumar Date: Sat, 12 Dec 2020 15:24:51 +0530 Subject: [PATCH] fix(gql-ts): fixes an issue where process.hrtime was not defined in worker (#262) fixes #248 --- patches/relay-compiler+10.0.1.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/relay-compiler+10.0.1.patch diff --git a/patches/relay-compiler+10.0.1.patch b/patches/relay-compiler+10.0.1.patch new file mode 100644 index 0000000..68eae85 --- /dev/null +++ b/patches/relay-compiler+10.0.1.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js b/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js +index 77a0cad..d842094 100644 +--- a/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js ++++ b/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js +@@ -189,6 +189,8 @@ function instrumentWait(fn, name) { + return instrumented; + } + ++process.hrtime = () => null ++ + var T_ZERO = process.hrtime(); // Return a Uint32 of microtime duration since program start. + + function microtime() {