Skip to content

Commit

Permalink
Merge pull request #6624 from apollographql/externalize-graphql/execu…
Browse files Browse the repository at this point in the history
…tion/execute

Add graphql/execution/execute to external list in rollup.config.js.
  • Loading branch information
benjamn authored Jul 16, 2020
2 parents 218a2b4 + 7d15208 commit 123639c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
23 changes: 12 additions & 11 deletions config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ import packageJson from '../package.json';
const distDir = './dist';

const external = [
'tslib',
'ts-invariant',
'symbol-observable',
'graphql/language/printer',
'optimism',
'graphql/language/visitor',
'graphql-tag',
'fast-json-stable-stringify',
'@wry/context',
'@wry/equality',
'fast-json-stable-stringify',
'graphql-tag',
'graphql/execution/execute',
'graphql/language/printer',
'graphql/language/visitor',
'hoist-non-react-statics',
'optimism',
'prop-types',
'react',
'subscriptions-transport-ws',
'symbol-observable',
'ts-invariant',
'tslib',
'zen-observable',
'prop-types',
'hoist-non-react-statics',
'subscriptions-transport-ws'
];

function prepareESM(input, outputDir) {
Expand Down
6 changes: 3 additions & 3 deletions docs/source/api/link/apollo-link-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The schema link provides a [graphql execution environment](http://graphql.org/gr
## Installation

`npm install @apollo/link-schema --save`
`npm install @apollo/client --save`

## Usage

Expand All @@ -21,7 +21,7 @@ When performing SSR _on the same server_, you can use this library to avoid maki

```js
import { ApolloClient, InMemoryCache } from '@apollo/client';
import { SchemaLink } from '@apollo/link-schema';
import { SchemaLink } from '@apollo/client/link/schema';

import schema from './path/to/your/schema';

Expand All @@ -38,7 +38,7 @@ For more detailed information about mocking, refer to the [graphql-tools documen

```js
import { ApolloClient, InMemoryCache } from '@apollo/client';
import { SchemaLink } from '@apollo/link-schema';
import { SchemaLink } from '@apollo/client/link/schema';
import { makeExecutableSchema, addMockFunctionsToSchema } from 'graphql-tools';

const typeDefs = `
Expand Down

0 comments on commit 123639c

Please sign in to comment.