Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Rollup bundle size tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hwillson committed Nov 15, 2019
1 parent e6ffc0a commit 38d79c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@
{
"name": "apollo-link-batch",
"path": "./packages/apollo-link-batch/lib/bundle.min.js",
"maxSize": "1 Kb"
"maxSize": "1.1 Kb"
},
{
"name": "apollo-link-batch-http",
"path": "./packages/apollo-link-batch-http/lib/bundle.min.js",
"maxSize": "1 Kb"
"maxSize": "1.1 Kb"
},
{
"name": "apollo-link-error",
"path": "./packages/apollo-link-error/lib/bundle.min.js",
"maxSize": "465 B"
"maxSize": "470 B"
},
{
"name": "apollo-link-polling",
"path": "./packages/apollo-link-polling/lib/bundle.min.js",
"maxSize": "350 B"
"maxSize": "355 B"
},
{
"name": "apollo-link-retry",
Expand All @@ -55,7 +55,7 @@
{
"name": "apollo-link-ws",
"path": "./packages/apollo-link-ws/lib/bundle.min.js",
"maxSize": "300 B"
"maxSize": "305 B"
}
],
"renovate": {
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import invariantPlugin from 'rollup-plugin-invariant';

export const globals = {
// Apollo
'@apollo/client': 'apollo.core',
'@apollo/client/core': 'apollo.core',
'zen-observable-ts': 'apolloLink.zenObservable',
'subscriptions-transport-ws': 'subscriptions-transport-ws',
'apollo-link-batch': 'apollo-link-batch',

// GraphQL
'graphql/language/printer': 'graphql.printer',
Expand Down

0 comments on commit 38d79c3

Please sign in to comment.