Skip to content

Commit

Permalink
Merge pull request #6593 from apollographql/issue-6109
Browse files Browse the repository at this point in the history
Create a `@apollo/client/link/http` CJS bundle
  • Loading branch information
hwillson authored Jul 14, 2020
2 parents 287aa46 + 24734e8 commit 163132e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/prepareDist.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,9 @@ fs.writeFileSync(
`${distRoot}/link/ws/package.json`,
buildPackageJson('ws', 'link/ws')
);

// @apollo/client/link/http
fs.writeFileSync(
`${distRoot}/link/http/package.json`,
buildPackageJson('http', 'link/http')
);
1 change: 1 addition & 0 deletions config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ function rollup() {
prepareBundle('retry', 'link/retry'),
prepareBundle('schema', 'link/schema'),
prepareBundle('ws', 'link/ws'),
prepareBundle('http', 'link/http'),
];
}

Expand Down
1 change: 1 addition & 0 deletions src/link/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ export { createSignalIfSupported } from './createSignalIfSupported';
export { selectURI } from './selectURI';
export { createHttpLink } from './createHttpLink';
export { HttpLink } from './HttpLink';
export { rewriteURIForGET } from './rewriteURIForGET';

0 comments on commit 163132e

Please sign in to comment.