diff --git a/.changeset/dirty-seals-heal.md b/.changeset/dirty-seals-heal.md new file mode 100644 index 000000000..73f5a63c7 --- /dev/null +++ b/.changeset/dirty-seals-heal.md @@ -0,0 +1,5 @@ +--- +'apollo-angular': patch +--- + +Smaller bundle for `gql` diff --git a/packages/apollo-angular/src/gql.ts b/packages/apollo-angular/src/gql.ts index 8a318531c..33b2a1775 100644 --- a/packages/apollo-angular/src/gql.ts +++ b/packages/apollo-angular/src/gql.ts @@ -1,11 +1,9 @@ import { gql as gqlTag, TypedDocumentNode } from '@apollo/client/core'; -function typedGQLTag( +const typedGQLTag: ( literals: ReadonlyArray | Readonly, ...placeholders: any[] -): TypedDocumentNode { - return gqlTag(literals, ...placeholders); -} +) => TypedDocumentNode = gqlTag; export const gql = typedGQLTag; export const graphql = typedGQLTag;