diff --git a/src/plugins/github/createGraph.js b/src/plugins/github/createGraph.js index 2f3cc9a..ffbc328 100644 --- a/src/plugins/github/createGraph.js +++ b/src/plugins/github/createGraph.js @@ -6,8 +6,7 @@ import * as N from "./nodes"; import * as R from "./relationalView"; import {createEdge} from "./edges"; import {findMentionsAuthorReferences} from "./heuristics/mentionsAuthorReference"; -// TODO(@decentralion): Opportunity to reduce bundle size -import {Reactions} from "./graphql"; +import {ReactionContent$Values as Reactions} from "./graphqlTypes"; export function createGraph(view: R.RelationalView): Graph { const creator = new GraphCreator(); diff --git a/src/plugins/github/edges.js b/src/plugins/github/edges.js index 5f4032d..97b69cb 100644 --- a/src/plugins/github/edges.js +++ b/src/plugins/github/edges.js @@ -9,8 +9,10 @@ import { import * as GithubNode from "./nodes"; import * as GitNode from "../git/nodes"; import type {MentionsAuthorReference} from "./heuristics/mentionsAuthorReference"; -// TODO(@decentralion): Opportunity to reduce bundle size (tree shaking?) -import {Reactions, type ReactionContent} from "./graphql"; +import { + type ReactionContent, + ReactionContent$Values as Reactions, +} from "./graphqlTypes"; export opaque type RawAddress: EdgeAddressT = EdgeAddressT; diff --git a/src/plugins/github/edges.test.js b/src/plugins/github/edges.test.js index 23fe51a..a19d2dc 100644 --- a/src/plugins/github/edges.test.js +++ b/src/plugins/github/edges.test.js @@ -5,7 +5,7 @@ import {createEdge, fromRaw, toRaw} from "./edges"; import * as GE from "./edges"; import * as GN from "./nodes"; import {COMMIT_TYPE} from "../git/nodes"; -import {Reactions} from "./graphql"; +import {ReactionContent$Values as Reactions} from "./graphqlTypes"; describe("plugins/github/edges", () => { const nodeExamples = { diff --git a/src/plugins/github/graphView.js b/src/plugins/github/graphView.js index d547115..3d99de3 100644 --- a/src/plugins/github/graphView.js +++ b/src/plugins/github/graphView.js @@ -7,8 +7,7 @@ import * as GN from "./nodes"; import * as GE from "./edges"; import * as GitNode from "../git/nodes"; -// TODO(@decentralion): Opportunity to reduce bundle size -import {Reactions} from "./graphql"; +import {ReactionContent$Values as Reactions} from "./graphqlTypes"; import { Graph,