From 493cd792f0ee31339b810fe376ec2d8fd971fac4 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Tue, 21 Jun 2022 22:42:41 -0700 Subject: [PATCH] make code Node ESM compatible --- src/createLazyQuery.ts | 2 +- src/createMutation.ts | 2 +- src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/createLazyQuery.ts b/src/createLazyQuery.ts index 6b6d122..a40e269 100644 --- a/src/createLazyQuery.ts +++ b/src/createLazyQuery.ts @@ -1,4 +1,4 @@ -import { mergeOptions } from '@apollo/client/core' +import { mergeOptions } from '@apollo/client/core/index.js' import type { QueryOptions, OperationVariables, ApolloError } from '@apollo/client/core' import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core' import type { Accessor } from 'solid-js' diff --git a/src/createMutation.ts b/src/createMutation.ts index 942c159..22a9a71 100644 --- a/src/createMutation.ts +++ b/src/createMutation.ts @@ -1,4 +1,4 @@ -import { mergeOptions } from '@apollo/client/core' +import { mergeOptions } from '@apollo/client/core/index.js' import type { DefaultContext, OperationVariables, MutationOptions, FetchResult } from '@apollo/client/core' import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core' import type { GraphQLError } from 'graphql' diff --git a/src/index.ts b/src/index.ts index 9581612..e4e37a3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,4 +3,4 @@ export * from './createQuery' export * from './createMutation' export * from './createSubscription' export * from './createLazyQuery' -export { ApolloClient, InMemoryCache, gql } from '@apollo/client/core' +export { ApolloClient, InMemoryCache, gql } from '@apollo/client/core/index.js'