Skip to content

Commit

Permalink
fix: correct import of gql in es module
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderBondar committed Jun 5, 2024
1 parent ca77d65 commit 7769551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql-zeus/plugins/typedDocumentNode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ProjectOptions } from '@/config.js';

export const pluginTypedDocumentNode = ({ esModule, node }: Partial<ProjectOptions>) => `/* eslint-disable */
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
import gql from 'graphql-tag';
import ${esModule ? "{ gql }" : "gql"} from 'graphql-tag';
import {
ValueTypes,
GenericOperation,
Expand Down

0 comments on commit 7769551

Please sign in to comment.