Skip to content

Commit

Permalink
experiment: remove graphql package esm fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Jun 16, 2023
1 parent 7c818ba commit 930783b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
14 changes: 0 additions & 14 deletions src/utilities/globals/fix-graphql.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/utilities/globals/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { invariant, newInvariantError, InvariantError } from "./invariantWrappers";

// Import graphql/jsutils/instanceOf safely, working around its unchecked usage
// of process.env.NODE_ENV and https://github.com/graphql/graphql-js/pull/2894.
import { removeTemporaryGlobals } from "./fix-graphql";

// Synchronously undo the global process.env.NODE_ENV polyfill that we created
// temporarily while importing the offending graphql/jsutils/instanceOf module.
removeTemporaryGlobals();

export { maybe } from "./maybe";
export { default as global } from "./global";
export { invariant, newInvariantError, InvariantError }
Expand Down

0 comments on commit 930783b

Please sign in to comment.