Skip to content

Commit

Permalink
Fix #8674 by polyfilling __DEV__ upon @apollo/client/link/http import.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Aug 23, 2021
1 parent a3f8e99 commit 623fab5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/link/http/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { invariant } from "ts-invariant";
import { DEV } from "../../utilities";
// Since createHttpLink uses __DEV__, we must be sure to polyfill it.
invariant("boolean" === typeof DEV, DEV);

export {
parseAndCheckHttpResponse,
ServerParseError
Expand Down

0 comments on commit 623fab5

Please sign in to comment.